summaryrefslogtreecommitdiffstats
path: root/lib/tevent
Commit message (Collapse)AuthorAgeFilesLines
* tevent: change version to 0.9.5 after the ABI has changedStefan Metzmacher2009-04-151-1/+1
| | | | | | metze (cherry picked from commit 7d07266ca26f7069269601043b713a91f1a4693c) (cherry picked from commit c0a0f504e1477648542aae27b8a58d4db4867d84)
* tevent: store the location where a request was finishedStefan Metzmacher2009-04-153-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 (cherry picked from commit 9eaf53d98eced9ea70f411b9936b475c42e4d490) (cherry picked from commit 8053941b377d3fd2e58e67f68eecb2551be49c10)
* tevent: use an immediate event as trigger for tevent_queueStefan Metzmacher2009-04-152-42/+60
| | | | | | metze (cherry picked from commit 3a831e46204979550dc6ee7652cea6b8296f10c1) (cherry picked from commit 7fcb16a79681a24ca3b96ec73bc44b43e57c3c8f)
* tevent: use an immediate event fot tevent_req_post()Stefan Metzmacher2009-04-152-19/+13
| | | | | | | | Now tevent_req_post() never fails metze (cherry picked from commit 4bdf299385220988a4fe16f82aab528283204c7f) (cherry picked from commit d88a254c5d2fbdda642d469924411d4d6d5f8422)
* tevent: use TALLOC_FREE() in tevent_req.cStefan Metzmacher2009-04-151-9/+5
| | | | | | metze (cherry picked from commit a78cd2a24b818bc7d843a8e56ffaafc9f6578662) (cherry picked from commit 54af7b9da45dcef881d9fee7c414d363ca6cdab4)
* tevent: add support for immediate eventsStefan Metzmacher2009-04-158-34/+295
| | | | | | | | | | They're like directly triggered timed events, but you can preallocated them and scheduling them will not fail. metze (cherry picked from commit 66886f8966dff8a980a5b9d2daa3fbb20fe5ca8e) (cherry picked from commit de7125980d237e9a8aa126f155bbc84c96bad37e)
* tevent: add tevent_common_loop_wait() helper function and use itStefan Metzmacher2009-04-155-55/+33
| | | | | | | | | tevent_loop_wait should do the same for all backends. It should loop as long as we have pending events. metze (cherry picked from commit 940e61846e97ba62153d5b977b0823f196607743) (cherry picked from commit c742112da583809f47e40f2e4b48713d2e81edda)
* tevent: check signal events first in event_loop_onceStefan Metzmacher2009-04-153-0/+15
| | | | | | | | | We also check for signal events directly before and after the select/epoll calls. metze (cherry picked from commit 0139befb915006d6ec9fec2734057c5c50b3c383) (cherry picked from commit c0bc27fc57260191e35464b63e114163d291d4da)
* tevent: let tevent_loop_once() just run one fd eventStefan Metzmacher2009-04-153-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 (cherry picked from commit 3af7db3dce0e5529114f6969e9905c6d4c65dfe8) (cherry picked from commit 1eb7ad106499865713c28847f491aae10f37beb7)
* tevent: change version to 0.9.4 as the ABI has changedStefan Metzmacher2009-04-151-1/+1
| | | | | | metze (cherry picked from commit 868f3f5f32eccdf68590cdfc5c42e1af970410d7) (cherry picked from commit 868cc328b189144c49901692206534c9b2729fbd)
* tevent: Fix might be unitialized warningTim Prouty2009-03-121-1/+1
|
* tevent: add tevent_loop_until()Stefan Metzmacher2009-03-122-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 Metzmacher2009-03-123-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() anymoreStefan Metzmacher2009-03-123-1/+53
| | | | | | | Incompatible caller should use tevent_loop_allow_nesting() function. metze
* tevent: pass __location__ to tevent_loop_once/wait()Stefan Metzmacher2009-03-126-17/+22
| | | | metze
* tevent: add tevent_set_abort_fn()Stefan Metzmacher2009-03-122-0/+21
| | | | metze
* tevent: add tevent_signal_support()Stefan Metzmacher2009-03-122-0/+10
| | | | | | Not every tevent backend supports signal events. metze
* tevent: add tevent_req_callback_data_void() macroStefan Metzmacher2009-03-101-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() functionStefan Metzmacher2009-03-103-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 opaqueSimo Sorce2009-03-023-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 teventfixJelmer Vernooij2009-03-014-4/+275
|\ | | | | | | | | Conflicts: lib/tevent/pytevent.c
| * tevent: add tevent_queue infrastructureStefan Metzmacher2009-02-263-1/+221
| | | | | | | | metze
| * tevent: add private_print function feature to tevent_reqStefan Metzmacher2009-02-252-3/+35
| | | | | | | | metze
| * tevent: add tevent_req_poll() functionStefan Metzmacher2009-02-252-0/+18
| | | | | | | | metze
| * Attempt to fix the OpenChange build -- sorry for the breakVolker Lendecke2009-02-251-1/+1
| |
| * tevent.h requires bool and uint[16|32|64]_tVolker Lendecke2009-02-241-0/+1
| |
| * pytevent: Fix include path - tevent_util is not installed.Jelmer Vernooij2009-02-211-1/+1
| |
* | Avoid using tevent_util.h, which won't be available if we use the systemJelmer Vernooij2009-03-011-2/+2
|/ | | | tevent.
* tevent: add tevent_wakeup_send/recv()Stefan Metzmacher2009-02-183-1/+76
| | | | | | This can be used as tevent_req based timer event. metze
* tevent: rename tevent_req_set_timeout() => tevent_req_set_endtime()Stefan Metzmacher2009-02-182-2/+2
| | | | | | This makes more clear what the function does. metze
* tevent: Rename ev_timeval* functions to tevent_timeval, export them.Kai Blin2009-02-177-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.cStefan Metzmacher2009-02-161-1/+3
| | | | metze
* lib/tevent: change to LGPLv3+Stefan Metzmacher2009-02-1616-188/+253
| | | | metze
* Add missing prototype for "tevent_req_print"Volker Lendecke2009-02-141-0/+2
|
* Fix a warning and a bug: pipe(2) can failVolker Lendecke2009-02-141-1/+4
|
* Add two variable assignments to shut up gccVolker Lendecke2009-02-141-2/+4
|
* tevent: raise version to 0.9.3Stefan Metzmacher2009-02-131-1/+1
| | | | | | | - aio events are removed - tevent_req infrastructure was added metze
* lib/tevent: add tevent_req infrastructureStefan Metzmacher2009-02-134-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.cStefan Metzmacher2009-02-131-0/+338
| | | | metze
* lib/tevent: expose ev_timeval_zero() for internal usageStefan Metzmacher2009-02-132-1/+2
| | | | metze
* lib/tevent: remove broken tevent_aio supportStefan Metzmacher2009-02-135-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 anymoreStefan Metzmacher2009-02-021-7/+2
| | | | metze
* lib/tevent: s/private/private_dataStefan Metzmacher2009-02-021-6/+6
| | | | metze
* Do not install private headersSimo Sorce2009-01-301-2/+0
|
* lib/tevent: include replace.h in pytevent.cStefan Metzmacher2009-01-301-0/+1
| | | | | | This fixes the build on Tru64. metze
* Fix standalone configure scriptsSimo Sorce2009-01-301-0/+1
|
* tevent: change SA_INFO_QUEUE_COUNT from 10 to 100Stefan Metzmacher2009-01-271-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 Metzmacher2009-01-201-5/+6
| | | | | | This makes debugging with gdb easier. metze
* tevent: use for() loops instead of while() loopsStefan Metzmacher2009-01-121-12/+9
| | | | metze
* tevent: Fix build breakTim Prouty2009-01-111-1/+1
|