From b2924a1549d874fb86deaad5fd2438e567c65bf4 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Wed, 20 Mar 2013 05:38:06 +0100 Subject: use new internal common code for thread, mutex, and socket operations --- src/notification_proxy.h | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'src/notification_proxy.h') diff --git a/src/notification_proxy.h b/src/notification_proxy.h index d8e9915..c2ded6a 100644 --- a/src/notification_proxy.h +++ b/src/notification_proxy.h @@ -22,24 +22,14 @@ #ifndef __NOTIFICATION_PROXY_H #define __NOTIFICATION_PROXY_H -#ifdef WIN32 -#include -#else -#include -#endif - #include "libimobiledevice/notification_proxy.h" #include "property_list_service.h" +#include "common/thread.h" struct np_client_private { property_list_service_client_t parent; -#ifdef WIN32 - CRITICAL_SECTION mutex; - HANDLE notifier; -#else - pthread_mutex_t mutex; - pthread_t notifier; -#endif + mutex_t mutex; + thread_t notifier; }; void* np_notifier(void* arg); -- cgit v1.1-32-gdbae