Added SILC Thread Queue API
[silc.git] / lib / silcutil / beos / silcbeosthread.c
index 76870e5266b0da47ce4419ff651ca2a3ffe8f70d..eb411412f6b0bd52ae0c0a7c2e74d3f21f4e85a9 100644 (file)
 /* I used Apache's APR code as a reference here. */
 /* $Id$ */
 
-#include "silcincludes.h"
+/* XXX This leaks memory. Perhaps the SilcThread API should be changed
+   since the silc_thread_self() causes that BeOS and OS/2 is hard to
+   do to support this SilcThread API */
+
+#include "silc.h"
 
 #ifdef SILC_THREADS
 
@@ -28,7 +32,7 @@ typedef struct {
   thread_id thread;
   SilcThreadStart start_func;
   void *context;
-  bool waitable;
+  SilcBool waitable;
 } *SilcBeosThread;
 
 /* Actual routine that is called by BeOS when the thread is created.
@@ -43,7 +47,7 @@ static void *silc_thread_beos_start(void *context)
 #endif
 
 SilcThread silc_thread_create(SilcThreadStart start_func, void *context,
-                             bool waitable)
+                             SilcBool waitable)
 {
 #ifdef SILC_THREADS
   int ret;
@@ -89,7 +93,7 @@ SilcThread silc_thread_self(void)
 #endif
 }
 
-bool silc_thread_wait(SilcThread thread, void **exit_value)
+SilcBool silc_thread_wait(SilcThread thread, void **exit_value)
 {
 #ifdef SILC_THREADS
   status_t ret, retval;