3 * Thread-safe Skiplist Using Integer Identifiers
4 * Copyright 1998-2000 Scott Shambarger (scott@shambarger.net)
6 * This software is open source. Permission to use, copy, modify, and
7 * distribute this software for any purpose and without fee is hereby granted,
8 * provided that the above copyright notice appear in all copies. No
9 * warranty of any kind is expressed or implied. Use at your own risk.
12 * Made it use neo errs... probably need to check locking functions
13 * for error returns...
17 #ifndef incl_HPHP_ULOCKS_H_
18 #define incl_HPHP_ULOCKS_H_
24 NEOERR
*mLock(pthread_mutex_t
*mutex
);
26 * Function: mLock - lock a mutex.
27 * Description: Locks the mutex <mutex>. This call blocks until the mutex
29 * Input: mutex - mutex to lock.
31 * Return: STATUS_OK on success
32 * NERR_LOCK on failure
36 NEOERR
*mUnlock(pthread_mutex_t
*mutex
);
38 * Function: mUnlock - unlock a mutex.
39 * Description: Unlocks the mutex <mutex>.
40 * Input: mutex - mutex to unlock.
42 * Return: STATUS_OK on success
43 * NERR_LOCK on failure
47 #endif /* HAVE_PTHREAD */
49 #endif /* incl_HPHP_ULOCKS_H_ */