1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
samba-mirror/source4/libcli/resolve
Andrew Tridgell fd62df6418 r4943: Smplified the events handling code a lot. The first source of
complexity was that events didn't automatically cleanup
themselves. This was because the events code was written before we had
talloc destructors, so you needed to call event_remove_XX() to clean
the event out of the event lists from every piece of code that used
events. I have now added automatic event destructors, which in turn
allowed me to simplify a lot of the calling code.

The 2nd source of complexity was caused by the ref_count, which was
needed to cope with event handlers destroying events while handling
them, which meant the linked lists became invalid, so the ref_count ws
used to mark events for later destruction.

The new system is much simpler. I now have a ev->destruction_count,
which is incremented in all event destructors. The event dispatch code
checks for changes to this and handles it.
(This used to be commit a3c7417cfe)
2007-10-10 13:09:08 -05:00
..
bcast.c r4898: - removed the unused wins_srv_*() code 2007-10-10 13:09:04 -05:00
host.c r4943: Smplified the events handling code a lot. The first source of 2007-10-10 13:09:08 -05:00
nbtlist.c r4898: - removed the unused wins_srv_*() code 2007-10-10 13:09:04 -05:00
resolve.c r4922: fixed an infinite loop in the name resolve code when handling a method 2007-10-10 13:09:06 -05:00
wins.c r4898: - removed the unused wins_srv_*() code 2007-10-10 13:09:04 -05:00