Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | tevent: fix the nesting logic | Stefan Metzmacher | 2009-03-19 | 1 | -7/+7 |
| | | | | | | | | | | | | | Only tevent_loop_once and tevent_loop_until() should care about the nesting level. This fixes the samba3 printing code where we use tevent_loop_wait() and don't allow nested events. We still call the nesting hook for all levels, we need to decide if we really want this... metze | ||||
* | fixed a logic bug in the tevent nesting code | Andrew Tridgell | 2009-03-19 | 1 | -1/+13 |
| | | | | | | | | | | The event nesting code never triggered as nesting.level was never greater than 1. The main event loop needs to increase the nesting level by 1. I also added a paranoia check to the nesting setup call. The API as currently written cannot support multiple nesting hooks, so we need to abort if multiple hooks are tried. | ||||
* | tevent: change version to 0.9.5 after the ABI has changed | Stefan Metzmacher | 2009-03-17 | 1 | -1/+1 |
| | | | | metze | ||||
* | tevent: store the location where a request was finished | Stefan Metzmacher | 2009-03-17 | 3 | -19/+48 |
| | | | | | | | | | This is very useful to find bugs. You can use 'p *req' in gdb to show where tevent_req_done(), tevent_req_error() or tevent_req_nomem() was called. metze | ||||
* | tevent: use an immediate event as trigger for tevent_queue | Stefan Metzmacher | 2009-03-17 | 2 | -42/+60 |
| | | | | metze | ||||
* | tevent: use an immediate event fot tevent_req_post() | Stefan Metzmacher | 2009-03-17 | 2 | -19/+13 |
| | | | | | | Now tevent_req_post() never fails metze | ||||
* | tevent: use TALLOC_FREE() in tevent_req.c | Stefan Metzmacher | 2009-03-17 | 1 | -9/+5 |
| | | | | metze | ||||
* | tevent: add support for immediate events | Stefan Metzmacher | 2009-03-17 | 8 | -34/+295 |
| | | | | | | | | They're like directly triggered timed events, but you can preallocated them and scheduling them will not fail. metze | ||||
* | tevent: add tevent_common_loop_wait() helper function and use it | Stefan Metzmacher | 2009-03-17 | 5 | -55/+33 |
| | | | | | | | tevent_loop_wait should do the same for all backends. It should loop as long as we have pending events. metze | ||||
* | tevent: check signal events first in event_loop_once | Stefan Metzmacher | 2009-03-17 | 3 | -0/+15 |
| | | | | | | | We also check for signal events directly before and after the select/epoll calls. metze | ||||
* | tevent: let tevent_loop_once() just run one fd event | Stefan Metzmacher | 2009-03-17 | 3 | -45/+7 |
| | | | | | | | | | | This makes the logic much simpler for the callers, and matches the samba3 behavior. If needed we can add performance tunning for tevent_loop_wait() later. metze | ||||
* | tevent: change version to 0.9.4 as the ABI has changed | Stefan Metzmacher | 2009-03-13 | 1 | -1/+1 |
| | | | | metze | ||||
* | tevent: Fix might be unitialized warning | Tim Prouty | 2009-03-12 | 1 | -1/+1 |
| | |||||
* | tevent: add tevent_loop_until() | Stefan Metzmacher | 2009-03-12 | 2 | -0/+68 |
| | | | | | | | This is only a hack for samba4 and should not be used in new code. metze | ||||
* | tevent: add tevent_loop_set_nesting_hook() | Stefan Metzmacher | 2009-03-12 | 3 | -1/+50 |
| | | | | | | | This is an ugly hack to let the s4 server work arround some bugs related to nested events and uid changing. metze | ||||
* | tevent: don't allow nested tevent_loop_once() anymore | Stefan Metzmacher | 2009-03-12 | 3 | -1/+53 |
| | | | | | | | Incompatible caller should use tevent_loop_allow_nesting() function. metze | ||||
* | tevent: pass __location__ to tevent_loop_once/wait() | Stefan Metzmacher | 2009-03-12 | 6 | -17/+22 |
| | | | | metze | ||||
* | tevent: add tevent_set_abort_fn() | Stefan Metzmacher | 2009-03-12 | 2 | -0/+21 |
| | | | | metze | ||||
* | tevent: add tevent_signal_support() | Stefan Metzmacher | 2009-03-12 | 2 | -0/+10 |
| | | | | | | Not every tevent backend supports signal events. metze | ||||
* | tevent: add tevent_req_callback_data_void() macro | Stefan Metzmacher | 2009-03-10 | 1 | -0/+2 |
| | | | | | | | Callers can use it instead of tevent_req_callback_data() if they use a non talloc private pointer. metze | ||||
* | tevent: add tevent_req_received() function | Stefan Metzmacher | 2009-03-10 | 3 | -2/+29 |
| | | | | | | | This function can be called as last action of a _recv() function, it destroys the data attached to the tevent_req. metze | ||||
* | Make struct tevent_req opaque | Simo Sorce | 2009-03-02 | 3 | -100/+137 |
| | | | | | | | | | | | | | | | | Move struct tevent_req in tevent_internal, and ad getters and setters for private data and the callback function. This patch also renames 'private_state' into 'data'. What is held in this pointer is in fact data and not a state like enum tevent_req_state. Calling it 'state' is confusing. The functions addedd are: tevent_req_set_callback() - sets req->async.fn and req->async.private_data tevent_req_set_print_fn() - sets req->private_print tevent_req_callback_data() - gets req->async.private_data tevent_req_data() - gets rea->data This way it is much simpler to keep API/ABI compatibility in the future. | ||||
* | Merge branch 'master' of git://git.samba.org/samba into teventfix | Jelmer Vernooij | 2009-03-01 | 4 | -4/+275 |
|\ | | | | | | | | | Conflicts: lib/tevent/pytevent.c | ||||
| * | tevent: add tevent_queue infrastructure | Stefan Metzmacher | 2009-02-26 | 3 | -1/+221 |
| | | | | | | | | metze | ||||
| * | tevent: add private_print function feature to tevent_req | Stefan Metzmacher | 2009-02-25 | 2 | -3/+35 |
| | | | | | | | | metze | ||||
| * | tevent: add tevent_req_poll() function | Stefan Metzmacher | 2009-02-25 | 2 | -0/+18 |
| | | | | | | | | metze | ||||
| * | Attempt to fix the OpenChange build -- sorry for the break | Volker Lendecke | 2009-02-25 | 1 | -1/+1 |
| | | |||||
| * | tevent.h requires bool and uint[16|32|64]_t | Volker Lendecke | 2009-02-24 | 1 | -0/+1 |
| | | |||||
| * | pytevent: Fix include path - tevent_util is not installed. | Jelmer Vernooij | 2009-02-21 | 1 | -1/+1 |
| | | |||||
* | | Avoid using tevent_util.h, which won't be available if we use the system | Jelmer Vernooij | 2009-03-01 | 1 | -2/+2 |
|/ | | | | tevent. | ||||
* | tevent: add tevent_wakeup_send/recv() | Stefan Metzmacher | 2009-02-18 | 3 | -1/+76 |
| | | | | | | This can be used as tevent_req based timer event. metze | ||||
* | tevent: rename tevent_req_set_timeout() => tevent_req_set_endtime() | Stefan Metzmacher | 2009-02-18 | 2 | -2/+2 |
| | | | | | | This makes more clear what the function does. metze | ||||
* | tevent: Rename ev_timeval* functions to tevent_timeval, export them. | Kai Blin | 2009-02-17 | 7 | -23/+61 |
| | | | | | Also add tevent_timeval_add() and tevent_timeval_current_ofs() to help not depending on lub/util/time.c for things that just need tevent | ||||
* | tevent: fix compiler warning in pytevent.c | Stefan Metzmacher | 2009-02-16 | 1 | -1/+3 |
| | | | | metze | ||||
* | lib/tevent: change to LGPLv3+ | Stefan Metzmacher | 2009-02-16 | 16 | -188/+253 |
| | | | | metze | ||||
* | Add missing prototype for "tevent_req_print" | Volker Lendecke | 2009-02-14 | 1 | -0/+2 |
| | |||||
* | Fix a warning and a bug: pipe(2) can fail | Volker Lendecke | 2009-02-14 | 1 | -1/+4 |
| | |||||
* | Add two variable assignments to shut up gcc | Volker Lendecke | 2009-02-14 | 1 | -2/+4 |
| | |||||
* | tevent: raise version to 0.9.3 | Stefan Metzmacher | 2009-02-13 | 1 | -1/+1 |
| | | | | | | | - aio events are removed - tevent_req infrastructure was added metze | ||||
* | lib/tevent: add tevent_req infrastructure | Stefan Metzmacher | 2009-02-13 | 4 | -202/+303 |
| | | | | | | | This is almost a copy of the async_req code, which will be removed later. metze | ||||
* | lib/tevent: add tevent_req.c as copy of lib/async_req/async_req.c | Stefan Metzmacher | 2009-02-13 | 1 | -0/+338 |
| | | | | metze | ||||
* | lib/tevent: expose ev_timeval_zero() for internal usage | Stefan Metzmacher | 2009-02-13 | 2 | -1/+2 |
| | | | | metze | ||||
* | lib/tevent: remove broken tevent_aio support | Stefan Metzmacher | 2009-02-13 | 5 | -610/+0 |
| | | | | | | | | | | | | It makes no sense to support aio events because, the current implementation was based on IOCB_CMD_EPOLL_WAIT which never made it into the main kernel tree. The native linux aio can be used with select/epoll using eventfd(), which means we can implement aio with fd events and implement aio outside of tevent. metze | ||||
* | lib/tevent: the python bindings don't use swig anymore | Stefan Metzmacher | 2009-02-02 | 1 | -7/+2 |
| | | | | metze | ||||
* | lib/tevent: s/private/private_data | Stefan Metzmacher | 2009-02-02 | 1 | -6/+6 |
| | | | | metze | ||||
* | Do not install private headers | Simo Sorce | 2009-01-30 | 1 | -2/+0 |
| | |||||
* | lib/tevent: include replace.h in pytevent.c | Stefan Metzmacher | 2009-01-30 | 1 | -0/+1 |
| | | | | | | This fixes the build on Tru64. metze | ||||
* | Fix standalone configure scripts | Simo Sorce | 2009-01-30 | 1 | -0/+1 |
| | |||||
* | tevent: change SA_INFO_QUEUE_COUNT from 10 to 100 | Stefan Metzmacher | 2009-01-27 | 1 | -1/+1 |
| | | | | | | | | | The samba3 aio code requires lp_max_mux() with a default of 50 and the samba3 linux oplock code requires 100. May we could make the size dynamic later. metze | ||||
* | tevent: rename signal handler functions to start with tevent_common_ | Stefan Metzmacher | 2009-01-20 | 1 | -5/+6 |
| | | | | | | This makes debugging with gdb easier. metze |