2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00
This commit is contained in:
Bob Halley
1998-08-18 08:05:45 +00:00
parent e7b7e6e746
commit d6da3b9e10
5 changed files with 48 additions and 19 deletions

View File

@@ -11,6 +11,11 @@
#define VALID_TASK(t) ((t) != NULL && \
(t)->magic == TASK_MAGIC)
/*
* We use macros instead of calling the os_ routines
* directly because the capital letters make the
* locking stand out.
*/
#define LOCK(lp) os_mutex_lock((lp))
#define UNLOCK(lp) os_mutex_unlock((lp))
#define WAIT(cvp, lp) os_condition_wait((cvp), (lp))