mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-03-27 01:01:52 -07:00
Freebsd locking for mps.
Copied from Perforce Change: 23624 ServerID: perforce.ravenbrook.com
This commit is contained in:
parent
894748f515
commit
b8b4cd53fd
1 changed files with 2 additions and 6 deletions
|
|
@ -34,11 +34,7 @@
|
|||
#error "lockfr.c is FreeBSD specific but MPS_OS_FR not defined"
|
||||
#endif
|
||||
|
||||
SRCID(lockli, "$HopeName$");
|
||||
|
||||
|
||||
#define LockAttrSetRecursive(attrptr) \
|
||||
pthread_mutexattr_settype(attrptr, PTHREAD_MUTEX_ERRORCHECK)
|
||||
SRCID(lockfr, "$HopeName$");
|
||||
|
||||
|
||||
/* LockStruct -- the MPS lock structure
|
||||
|
|
@ -83,7 +79,7 @@ void LockInit(Lock lock)
|
|||
lock->claims = 0;
|
||||
res = pthread_mutexattr_init(&attr);
|
||||
AVER(res == 0);
|
||||
res = LockAttrSetRecursive(&attr);
|
||||
res = pthread_mutexattr_settype(attrptr, PTHREAD_MUTEX_ERRORCHECK);
|
||||
AVER(res == 0);
|
||||
res = pthread_mutex_init(&lock->mut, &attr);
|
||||
AVER(res == 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue