Loading lib/hostthre.c +4 −0 Original line number Original line Diff line number Diff line Loading @@ -181,6 +181,7 @@ struct thread_sync_data { }; }; /* Destroy resolver thread synchronization data */ /* Destroy resolver thread synchronization data */ static void destroy_thread_sync_data(struct thread_sync_data * tsd) void destroy_thread_sync_data(struct thread_sync_data * tsd) { { if (tsd->hostname) { if (tsd->hostname) { Loading @@ -202,6 +203,7 @@ void destroy_thread_sync_data(struct thread_sync_data * tsd) } } /* Initialize resolver thread synchronization data */ /* Initialize resolver thread synchronization data */ static BOOL init_thread_sync_data(struct thread_data * td, BOOL init_thread_sync_data(struct thread_data * td, char * hostname, char * hostname, struct thread_sync_data * tsd) struct thread_sync_data * tsd) Loading Loading @@ -243,6 +245,7 @@ BOOL init_thread_sync_data(struct thread_data * td, } } /* acquire resolver thread synchronization */ /* acquire resolver thread synchronization */ static BOOL acquire_thread_sync(struct thread_sync_data * tsd) BOOL acquire_thread_sync(struct thread_sync_data * tsd) { { /* is the thread initiator still waiting for us ? */ /* is the thread initiator still waiting for us ? */ Loading @@ -269,6 +272,7 @@ BOOL acquire_thread_sync(struct thread_sync_data * tsd) } } /* release resolver thread synchronization */ /* release resolver thread synchronization */ static void release_thread_sync(struct thread_sync_data * tsd) void release_thread_sync(struct thread_sync_data * tsd) { { ReleaseMutex(tsd->mutex_terminate); ReleaseMutex(tsd->mutex_terminate); Loading Loading
lib/hostthre.c +4 −0 Original line number Original line Diff line number Diff line Loading @@ -181,6 +181,7 @@ struct thread_sync_data { }; }; /* Destroy resolver thread synchronization data */ /* Destroy resolver thread synchronization data */ static void destroy_thread_sync_data(struct thread_sync_data * tsd) void destroy_thread_sync_data(struct thread_sync_data * tsd) { { if (tsd->hostname) { if (tsd->hostname) { Loading @@ -202,6 +203,7 @@ void destroy_thread_sync_data(struct thread_sync_data * tsd) } } /* Initialize resolver thread synchronization data */ /* Initialize resolver thread synchronization data */ static BOOL init_thread_sync_data(struct thread_data * td, BOOL init_thread_sync_data(struct thread_data * td, char * hostname, char * hostname, struct thread_sync_data * tsd) struct thread_sync_data * tsd) Loading Loading @@ -243,6 +245,7 @@ BOOL init_thread_sync_data(struct thread_data * td, } } /* acquire resolver thread synchronization */ /* acquire resolver thread synchronization */ static BOOL acquire_thread_sync(struct thread_sync_data * tsd) BOOL acquire_thread_sync(struct thread_sync_data * tsd) { { /* is the thread initiator still waiting for us ? */ /* is the thread initiator still waiting for us ? */ Loading @@ -269,6 +272,7 @@ BOOL acquire_thread_sync(struct thread_sync_data * tsd) } } /* release resolver thread synchronization */ /* release resolver thread synchronization */ static void release_thread_sync(struct thread_sync_data * tsd) void release_thread_sync(struct thread_sync_data * tsd) { { ReleaseMutex(tsd->mutex_terminate); ReleaseMutex(tsd->mutex_terminate); Loading