summaryrefslogtreecommitdiff
path: root/libhurd-mm/pager.h
diff options
context:
space:
mode:
authorneal <neal>2007-12-10 15:18:32 +0000
committerneal <neal>2007-12-10 15:18:32 +0000
commitd9c3f0b253ccbb3153e70a9fcb47c24276044cc1 (patch)
tree416490d798e02feca854670427bf8aa87e17ed43 /libhurd-mm/pager.h
parentd8d392a59e99b945a9e15bfe84a0aa8839cb78b5 (diff)
2007-12-10 Neal H. Walfield <neal@gnu.org>
* as.c: Don't include <pthread.h>. Include <hurd/mutex.h>. (free_spaces_lock): Make an ss_mutex_t, not a pthread_mutex_t. Update users. * storage.c: Don't include <pthread.h>. Include <hurd/mutex.h>. (struct storage_desc): Make lock an ss_mutex_t, not a pthread_mutex_t. Update users. (storage_descs_lock): Likewise. * pager.h: Don't include <pthread.h>. Include <hurd/mutex.h>. (struct pager): Make lock an ss_mutex_t, not a pthread_mutex_t. Update users. (pagers_lock): Likewise.
Diffstat (limited to 'libhurd-mm/pager.h')
-rw-r--r--libhurd-mm/pager.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libhurd-mm/pager.h b/libhurd-mm/pager.h
index 4fd4bd6..194eacb 100644
--- a/libhurd-mm/pager.h
+++ b/libhurd-mm/pager.h
@@ -25,9 +25,9 @@
#include <hurd/btree.h>
#include <hurd/addr.h>
#include <hurd/exceptions.h>
+#include <hurd/mutex.h>
#include <stdint.h>
#include <stdbool.h>
-#include <pthread.h>
/* Forward. */
struct pager;
@@ -77,12 +77,12 @@ struct pager
/* Protects everything but NODE and REGION. This lock may be taken
if PAGERS_LOCK is held. */
- pthread_mutex_t lock;
+ ss_mutex_t lock;
};
/* Protects PAGERS and all pager's NODE. This lock may not be taken
if a pager's LOCK is held by the caller. */
-extern pthread_mutex_t pagers_lock;
+extern ss_mutex_t pagers_lock;
/* Compare two regions. Two regions are considered equal if there is
any overlap at all. */