/usr/include/hphp/neo/ulocks.h is in hhvm-dev 3.11.1+dfsg-1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | /*
*
* Thread-safe Skiplist Using Integer Identifiers
* Copyright 1998-2000 Scott Shambarger (scott@shambarger.net)
*
* This software is open source. Permission to use, copy, modify, and
* distribute this software for any purpose and without fee is hereby granted,
* provided that the above copyright notice appear in all copies. No
* warranty of any kind is expressed or implied. Use at your own risk.
*
* 1/14/2001 blong
* Made it use neo errs... probably need to check locking functions
* for error returns...
*
*/
#ifndef incl_HPHP_ULOCKS_H_
#define incl_HPHP_ULOCKS_H_
#ifdef HAVE_PTHREADS
#include <pthread.h>
NEOERR *mLock(pthread_mutex_t *mutex);
/*
* Function: mLock - lock a mutex.
* Description: Locks the mutex <mutex>. This call blocks until the mutex
* is acquired.
* Input: mutex - mutex to lock.
* Output: None.
* Return: STATUS_OK on success
* NERR_LOCK on failure
* MT-Level: Safe.
*/
NEOERR *mUnlock(pthread_mutex_t *mutex);
/*
* Function: mUnlock - unlock a mutex.
* Description: Unlocks the mutex <mutex>.
* Input: mutex - mutex to unlock.
* Output: None.
* Return: STATUS_OK on success
* NERR_LOCK on failure
* MT-Level: Safe.
*/
#endif /* HAVE_PTHREAD */
#endif /* incl_HPHP_ULOCKS_H_ */
|