X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilcutil%2Fbeos%2Fsilcbeosthread.c;h=eb411412f6b0bd52ae0c0a7c2e74d3f21f4e85a9;hb=40f8443d8d3a6577336ee66d18e04d9ac4d956bb;hp=76870e5266b0da47ce4419ff651ca2a3ffe8f70d;hpb=f93d80a4907e9ddd4bdc8b12a9f82cf2b279d07b;p=silc.git diff --git a/lib/silcutil/beos/silcbeosthread.c b/lib/silcutil/beos/silcbeosthread.c index 76870e52..eb411412 100644 --- a/lib/silcutil/beos/silcbeosthread.c +++ b/lib/silcutil/beos/silcbeosthread.c @@ -19,7 +19,11 @@ /* 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;