FS-2746 --resolve large xmlrpc update thanks garmt

This commit is contained in:
Jeff Lenk
2012-10-13 11:37:25 -05:00
parent 37ecad9903
commit 6b6c83a718
397 changed files with 41822 additions and 33841 deletions

View File

@@ -0,0 +1,49 @@
#include <stdlib.h>
#include "mallocvar.h"
#include "pthreadx.h"
#include "lock.h"
#include "lock_pthread.h"
static lockAcquireFn acquire;
static void
acquire(struct lock * const lockP) {
pthread_mutex_lock(&lockP->theLock);
}
static lockReleaseFn release;
static void
release(struct lock * const lockP) {
pthread_mutex_unlock(&lockP->theLock);
}
static lockDestroyFn destroy;
static void
destroy(struct lock * const lockP) {
pthread_mutex_destroy(&lockP->theLock);
free(lockP);
}
struct lock *
curlLock_create_pthread(void) {
struct lock * lockP;
MALLOCVAR(lockP);
if (lockP) {
pthread_mutex_init(&lockP->theLock, NULL);
lockP->acquire = &acquire;
lockP->release = &release;
lockP->destroy = &destroy;
}
return lockP;
}