diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-01-30 02:55:30 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:09:23 -0500 |
commit | 1447b9a8c135ddc8d369be9ab970a4cccf4ecf0e (patch) | |
tree | fea0e3bc04a63cb7d3eb0dfad86e0589b12a235d /source4/lib/events.c | |
parent | 597142ddd3575a50a491a89dd5ce5fb40945028f (diff) | |
download | samba-1447b9a8c135ddc8d369be9ab970a4cccf4ecf0e.tar.gz samba-1447b9a8c135ddc8d369be9ab970a4cccf4ecf0e.tar.bz2 samba-1447b9a8c135ddc8d369be9ab970a4cccf4ecf0e.zip |
r5104: - added support for task based servers. These are servers that within
themselves are run as a single process, but run as a child of the
main process when smbd is run in the standard model, and run as part
of the main process when in the single mode.
- rewrote the winbind template code to use the new task services. Also
fixed the packet queueing
- got rid of event_context_merge() as it is no longer needed
(This used to be commit 339964a596689278d2138cff05d7d444798a3504)
Diffstat (limited to 'source4/lib/events.c')
-rw-r--r-- | source4/lib/events.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/source4/lib/events.c b/source4/lib/events.c index d32a1344e0..c09d9b5030 100644 --- a/source4/lib/events.c +++ b/source4/lib/events.c @@ -110,32 +110,6 @@ static void calc_maxfd(struct event_context *ev) } } -/* - move the event structures from ev2 into ev, upping the reference - count on ev. The event context ev2 is then destroyed. - - this is used by modules that need to call on the events of a lower module -*/ -struct event_context *event_context_merge(struct event_context *ev, - struct event_context *ev2) -{ - DLIST_CONCATENATE(ev->fd_events, ev2->fd_events, struct fd_event *); - DLIST_CONCATENATE(ev->timed_events, ev2->timed_events, struct timed_event *); - DLIST_CONCATENATE(ev->loop_events, ev2->loop_events, struct loop_event *); - - ev2->fd_events = NULL; - ev2->timed_events = NULL; - ev2->loop_events = NULL; - - talloc_steal(ev->events, ev2->events); - - event_context_destroy(ev2); - - calc_maxfd(ev); - - return ev; -} - /* to mark the ev->maxfd invalid * this means we need to recalculate it */ |