projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added SILC Thread Queue API
[silc.git]
/
lib
/
silcutil
/
beos
/
silcbeosthread.c
diff --git
a/lib/silcutil/beos/silcbeosthread.c
b/lib/silcutil/beos/silcbeosthread.c
index d6e88be3e6f785dd5def6fa5d861d0ede66bea11..eb411412f6b0bd52ae0c0a7c2e74d3f21f4e85a9 100644
(file)
--- a/
lib/silcutil/beos/silcbeosthread.c
+++ b/
lib/silcutil/beos/silcbeosthread.c
@@
-16,9
+16,14
@@
GNU General Public License for more details.
*/
GNU General Public License for more details.
*/
+/* I used Apache's APR code as a reference here. */
/* $Id$ */
/* $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
#ifdef SILC_THREADS
@@
-27,7
+32,7
@@
typedef struct {
thread_id thread;
SilcThreadStart start_func;
void *context;
thread_id thread;
SilcThreadStart start_func;
void *context;
-
b
ool waitable;
+
SilcB
ool waitable;
} *SilcBeosThread;
/* Actual routine that is called by BeOS when the thread is created.
} *SilcBeosThread;
/* Actual routine that is called by BeOS when the thread is created.
@@
-42,7
+47,7
@@
static void *silc_thread_beos_start(void *context)
#endif
SilcThread silc_thread_create(SilcThreadStart start_func, void *context,
#endif
SilcThread silc_thread_create(SilcThreadStart start_func, void *context,
-
b
ool waitable)
+
SilcB
ool waitable)
{
#ifdef SILC_THREADS
int ret;
{
#ifdef SILC_THREADS
int ret;
@@
-88,7
+93,7
@@
SilcThread silc_thread_self(void)
#endif
}
#endif
}
-
b
ool silc_thread_wait(SilcThread thread, void **exit_value)
+
SilcB
ool silc_thread_wait(SilcThread thread, void **exit_value)
{
#ifdef SILC_THREADS
status_t ret, retval;
{
#ifdef SILC_THREADS
status_t ret, retval;