aboutsummaryrefslogtreecommitdiff
path: root/src/keeper.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/keeper.h')
-rw-r--r--src/keeper.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/keeper.h b/src/keeper.h
index ed11ec4..5a52f3b 100644
--- a/src/keeper.h
+++ b/src/keeper.h
@@ -8,15 +8,8 @@ struct s_Keeper
8 //int count; 8 //int count;
9}; 9};
10 10
11// if enabled, call close_keepers at the very last as we want to be sure no thread is GCing after. 11int init_keepers( lua_State* L);
12// (and therefore may perform linda object dereferencing after keepers are gone) 12void close_keepers( lua_State* L);
13// problem: maybe on some platforms (linux) atexit() is called after DLL/so are unloaded...
14#define HAVE_KEEPER_ATEXIT_DESINIT 0
15
16char const* init_keepers( lua_State* L);
17#if !HAVE_KEEPER_ATEXIT_DESINIT
18void close_keepers( void);
19#endif // HAVE_KEEPER_ATEXIT_DESINIT
20 13
21struct s_Keeper *keeper_acquire( unsigned long magic_); 14struct s_Keeper *keeper_acquire( unsigned long magic_);
22#define KEEPER_MAGIC_SHIFT 3 15#define KEEPER_MAGIC_SHIFT 3