aboutsummaryrefslogtreecommitdiffhomepage
path: root/event.c
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-05-18 23:00:39 +1000
committerGravatar axel <axel@liljencrantz.se>2006-05-18 23:00:39 +1000
commit763a6b83518450289e49499e3cbc7c8151806be8 (patch)
treed921201662bb7bdf5dbbb029e8cacb8d6ca56d17 /event.c
parent4a06821d995ec657e9927082c0636451b0bb2102 (diff)
Minor cleanup
darcs-hash:20060518130039-ac50b-c17e794113c38909d90be840fce36c7727c628b4.gz
Diffstat (limited to 'event.c')
-rw-r--r--event.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/event.c b/event.c
index 88eaac5b..dc274bd1 100644
--- a/event.c
+++ b/event.c
@@ -57,7 +57,7 @@ typedef struct
active, which is the one that new events is written to. The inactive
one contains the events that are currently beeing performed.
*/
-static signal_list_t sig_list[2];
+static signal_list_t sig_list[]={{0,0},{0,0}};
/**
The index of sig_list that is the list of signals currently written to
@@ -273,9 +273,12 @@ void event_remove( event_t *criterion )
event_t e;
/*
- Because of concurrency issues, env_remove does not actually free
- any events - instead it simply moves all events that should be
- removed from the event list to the killme list.
+ Because of concurrency issues (env_remove could remove an event
+ that is currently being executed), env_remove does not actually
+ free any events - instead it simply moves all events that should
+ be removed from the event list to the killme list, and the ones
+ that shouldn't be killed to new_list, and then drops the empty
+ events-list.
*/
if( !events )
@@ -617,7 +620,6 @@ void event_fire( event_t *event )
void event_init()
{
- sig_list[active_list].count=0;
}
void event_destroy()