Changeset 143 for trunk/include
- Timestamp:
- Oct 31, 2007, 1:09:26 AM (17 years ago)
- Location:
- trunk/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/samhain.h
r140 r143 128 128 }; 129 129 130 enum { 131 SH_MOD_ACTIVE = 0, 132 SH_MOD_THREAD = 1, 133 SH_MOD_FAILED = 2 134 }; 135 130 #define SH_MOD_THREAD 1 131 #define SH_MOD_ACTIVE 0 132 #define SH_MOD_FAILED -1 133 136 134 /* Flags for file status 137 135 */ … … 287 285 extern volatile int sig_debug_switch; /* SIGUSR1 */ 288 286 extern volatile int sig_suspend_switch; /* SIGUSR2 */ 289 extern volatile int sh_global_suspend_flag; /* SIGUSR2 */287 extern volatile int sh_global_suspend_flag; 290 288 extern volatile int sig_fresh_trail; /* SIGIOT */ 289 extern volatile int sh_thread_pause_flag; 291 290 extern volatile int sig_config_read_again; /* SIGHUP */ 292 291 extern volatile int sig_terminate; /* SIGQUIT */ -
trunk/include/sh_pthread.h
r140 r143 38 38 #if defined(HAVE_PTHREAD_MUTEX_RECURSIVE) 39 39 40 /* On GNU C, it's an enum, thus the alternative implementation41 * below is used.42 */43 40 #define SH_MUTEX_RECURSIVE(M) \ 44 41 static pthread_mutex_t M; \ … … 46 43 { \ 47 44 pthread_mutexattr_t mta; \ 45 pthread_mutexattr_init(&mta); \ 48 46 pthread_mutexattr_settype(&mta, PTHREAD_MUTEX_RECURSIVE); \ 49 47 pthread_mutex_init(&(M), &mta); \ … … 115 113 SH_MUTEX_EXTERN(mutex_pwent); 116 114 SH_MUTEX_EXTERN(mutex_readdir); 115 /* Prevent threads from logging while we are in suspend */ 116 SH_MUTEX_EXTERN(mutex_thread_nolog); 117 117 118 118 /* … … 120 120 */ 121 121 extern int sh_g_thread(); 122 123 124 /* 125 * ---- Functions for threaded modules ---- 126 */ 127 int sh_pthread_create(void *(*start_routine)(void*), void *arg); 128 int sh_pthread_cancel_all(void); 129 void sh_threaded_module_reconf(void *arg); 130 void * sh_threaded_module_run(void *arg); 122 131 123 132 #else
Note:
See TracChangeset
for help on using the changeset viewer.