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/afc.h | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'src/afc.h') diff --git a/src/afc.h b/src/afc.h index 33662f2..ae122e2 100644 --- a/src/afc.h +++ b/src/afc.h @@ -23,15 +23,11 @@ #define __AFC_H #include -#ifdef WIN32 -#include -#else -#include -#endif #include "libimobiledevice/afc.h" #include "service.h" #include "endianness.h" +#include "common/thread.h" #define AFC_MAGIC "CFA6LPAA" #define AFC_MAGIC_LEN (8) @@ -62,11 +58,7 @@ struct afc_client_private { AFCPacket *afc_packet; int file_handle; int lock; -#ifdef WIN32 - CRITICAL_SECTION mutex; -#else - pthread_mutex_t mutex; -#endif + mutex_t mutex; int free_parent; }; -- cgit v1.1-32-gdbae