mirror of
https://github.com/edeproject/ede.git
synced 2023-08-10 21:13:03 +03:00
Copying ede-bug-report from branches in trunk
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
#ifndef CURL_LOCK_H_INCLUDED
|
||||
#define CURL_LOCK_H_INCLUDED
|
||||
|
||||
#include <pthread.h>
|
||||
|
||||
typedef struct lock lock;
|
||||
|
||||
typedef void lockAcquireFn(lock *);
|
||||
typedef void lockReleaseFn(lock *);
|
||||
typedef void lockDestroyFn(lock *);
|
||||
|
||||
struct lock {
|
||||
/* To finish the job of making an abstract lock class that can use locks
|
||||
other than pthread mutexes, we need to replace 'theLock' with a
|
||||
"void * implementationP" and make curlLock_create_pthread() malloc
|
||||
the mutex.
|
||||
*/
|
||||
pthread_mutex_t theLock;
|
||||
lockAcquireFn * acquire;
|
||||
lockReleaseFn * release;
|
||||
lockDestroyFn * destroy;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user