From 0c34043dfe11803e5d92094c4f45c3b0c0623cad Mon Sep 17 00:00:00 2001 From: MelwareDE Date: Fri, 11 Jun 2010 11:18:22 +0000 Subject: [PATCH] Improved performance --- divastreaming/platform.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/divastreaming/platform.h b/divastreaming/platform.h index 252c463..dd925a2 100644 --- a/divastreaming/platform.h +++ b/divastreaming/platform.h @@ -86,6 +86,13 @@ void diva_os_free (unsigned long flags, void* ptr); #include "debuglib.h" #define DIVA_SHARED_SEGMENT_ALLOC 1 +/* + DIVA_SHARED_SEGMENT_LOCK used to lock shared segment alloc instance. Locked instance is newer freed + due to reference counter newer receives zero. This allows to maintain permenently mapped pool of pages + and to reduce overall system load. + Causes memory load if application is stopped, but memory and mapped resources are freed by OS. + */ +#define DIVA_SHARED_SEGMENT_LOCK 1 #endif