projects
/
silc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a701291
)
Fixed initialization bug when !SILC_THREADS.
author
Pekka Riikonen
<priikone@silcnet.org>
Wed, 9 May 2007 06:03:00 +0000
(06:03 +0000)
committer
Pekka Riikonen
<priikone@silcnet.org>
Wed, 9 May 2007 06:03:00 +0000
(06:03 +0000)
lib/silcutil/unix/silcunixschedule.c
patch
|
blob
|
history
diff --git
a/lib/silcutil/unix/silcunixschedule.c
b/lib/silcutil/unix/silcunixschedule.c
index 15840ee3fb67292549d17715c0cce5f0962a912b..579af8bf776ccda5967b48bfce6b952465a1e79d 100644
(file)
--- a/
lib/silcutil/unix/silcunixschedule.c
+++ b/
lib/silcutil/unix/silcunixschedule.c
@@
-323,7
+323,7
@@
SILC_TASK_CALLBACK(silc_schedule_wakeup_cb)
/* Initializes the platform specific scheduler. This for example initializes
the wakeup mechanism of the scheduler. In multi-threaded environment
/* Initializes the platform specific scheduler. This for example initializes
the wakeup mechanism of the scheduler. In multi-threaded environment
- the scheduler needs to be w
aken
up when tasks are added or removed from
+ the scheduler needs to be w
oken
up when tasks are added or removed from
the task queues. Returns context to the platform specific scheduler. */
void *silc_schedule_internal_init(SilcSchedule schedule,
the task queues. Returns context to the platform specific scheduler. */
void *silc_schedule_internal_init(SilcSchedule schedule,
@@
-387,10
+387,10
@@
void *silc_schedule_internal_init(SilcSchedule schedule,
silc_free(internal);
return NULL;
}
silc_free(internal);
return NULL;
}
-#endif
silc_schedule_internal_schedule_fd(schedule, internal,
(SilcTaskFd)internal->wakeup_task,
SILC_TASK_READ);
silc_schedule_internal_schedule_fd(schedule, internal,
(SilcTaskFd)internal->wakeup_task,
SILC_TASK_READ);
+#endif /* SILC_THREADS */
internal->app_context = app_context;
internal->app_context = app_context;
@@
-439,7
+439,7
@@
void silc_schedule_internal_wakeup(SilcSchedule schedule, void *context)
#ifdef SILC_THREADS
SilcUnixScheduler internal = (SilcUnixScheduler)context;
#ifdef SILC_THREADS
SilcUnixScheduler internal = (SilcUnixScheduler)context;
- if (!internal)
+ if (!internal
|| !internal->wakeup_task
)
return;
SILC_LOG_DEBUG(("Wakeup"));
return;
SILC_LOG_DEBUG(("Wakeup"));