diff options
author | larryh%netscape.com <devnull@localhost> | 2001-06-04 22:20:48 +0000 |
---|---|---|
committer | larryh%netscape.com <devnull@localhost> | 2001-06-04 22:20:48 +0000 |
commit | 6221255a7362ee1d1c31d0f05a51c4f04508531b (patch) | |
tree | 9ff682a35000e069e51f459b0908af285d876777 /pr/include | |
parent | 93a93ff48da099b2fa6d5cf6f45f705df40ee442 (diff) | |
download | nspr-hg-6221255a7362ee1d1c31d0f05a51c4f04508531b.tar.gz |
Bugzilla 81666. new os2 locking
Diffstat (limited to 'pr/include')
-rw-r--r-- | pr/include/md/_os2.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pr/include/md/_os2.h b/pr/include/md/_os2.h index 70cb895e..e06d9a85 100644 --- a/pr/include/md/_os2.h +++ b/pr/include/md/_os2.h @@ -350,10 +350,10 @@ extern PRInt32 _MD_Accept(PRFileDesc *fd, PRNetAddr *raddr, PRUint32 *rlen, #define _PR_LOCK _MD_LOCK #define _PR_UNLOCK _MD_UNLOCK -#define _MD_NEW_LOCK(lock) (DosCreateMutexSem(0, &((lock)->mutex), 0, 0),(lock)->notified.length=0,(lock)->notified.link=NULL,PR_SUCCESS) -#define _MD_FREE_LOCK(lock) DosCloseMutexSem(((lock)->mutex)) -#define _MD_LOCK(lock) DosRequestMutexSem(((lock)->mutex), SEM_INDEFINITE_WAIT) -#define _MD_TEST_AND_LOCK(lock) (DosRequestMutexSem(((lock)->mutex), SEM_INDEFINITE_WAIT),PR_SUCCESS) +#define _MD_NEW_LOCK (_PR_MD_NEW_LOCK) +#define _MD_FREE_LOCK (_PR_MD_FREE_LOCK) +#define _MD_LOCK (_PR_MD_LOCK) +#define _MD_TEST_AND_LOCK (_PR_MD_TEST_AND_LOCK) #define _MD_UNLOCK (_PR_MD_UNLOCK) /* --- lock and cv waiting --- */ |