Page MenuHomeFreeBSD

D43449.id132742.diff
No OneTemporary

D43449.id132742.diff

diff --git a/sys/sys/condvar.h b/sys/sys/condvar.h
--- a/sys/sys/condvar.h
+++ b/sys/sys/condvar.h
@@ -29,14 +29,6 @@
#ifndef _SYS_CONDVAR_H_
#define _SYS_CONDVAR_H_
-#ifndef LOCORE
-#include <sys/queue.h>
-
-struct lock_object;
-struct thread;
-
-TAILQ_HEAD(cv_waitq, thread);
-
/*
* Condition variable. The waiters count is protected by the mutex that
* protects the condition; that is, the mutex that is passed to cv_wait*()
@@ -49,6 +41,10 @@
};
#ifdef _KERNEL
+#include <sys/types.h>
+
+struct lock_object;
+
void cv_init(struct cv *cvp, const char *desc);
void cv_destroy(struct cv *cvp);
@@ -85,5 +81,4 @@
#define cv_wmesg(cvp) ((cvp)->cv_description)
#endif /* _KERNEL */
-#endif /* !LOCORE */
#endif /* _SYS_CONDVAR_H_ */

File Metadata

Mime Type
text/plain
Expires
Mon, Aug 10, 9:21 AM (15 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36294129
Default Alt Text
D43449.id132742.diff (756 B)

Event Timeline