| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
metze
(cherry picked from commit 7d07266ca26f7069269601043b713a91f1a4693c)
(cherry picked from commit c0a0f504e1477648542aae27b8a58d4db4867d84)
|
|
|
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
| |
metze
(cherry picked from commit 3a831e46204979550dc6ee7652cea6b8296f10c1)
(cherry picked from commit 7fcb16a79681a24ca3b96ec73bc44b43e57c3c8f)
|
|
|
|
|
|
|
|
| |
Now tevent_req_post() never fails
metze
(cherry picked from commit 4bdf299385220988a4fe16f82aab528283204c7f)
(cherry picked from commit d88a254c5d2fbdda642d469924411d4d6d5f8422)
|
|
|
|
|
|
| |
metze
(cherry picked from commit a78cd2a24b818bc7d843a8e56ffaafc9f6578662)
(cherry picked from commit 54af7b9da45dcef881d9fee7c414d363ca6cdab4)
|
|
|
|
|
|
|
|
|
|
| |
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_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)
|
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
| |
metze
(cherry picked from commit 868f3f5f32eccdf68590cdfc5c42e1af970410d7)
(cherry picked from commit 868cc328b189144c49901692206534c9b2729fbd)
|
| |
|
|
|
|
|
|
|
| |
This is only a hack for samba4 and should not be used
in new code.
metze
|
|
|
|
|
|
|
| |
This is an ugly hack to let the s4 server work arround
some bugs related to nested events and uid changing.
metze
|
|
|
|
|
|
|
| |
Incompatible caller should use tevent_loop_allow_nesting()
function.
metze
|
|
|
|
| |
metze
|
|
|
|
| |
metze
|
|
|
|
|
|
| |
Not every tevent backend supports signal events.
metze
|
|
|
|
|
|
|
| |
Callers can use it instead of tevent_req_callback_data()
if they use a non talloc private pointer.
metze
|
|
|
|
|
|
|
| |
This function can be called as last action of a _recv()
function, it destroys the data attached to the tevent_req.
metze
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|\
| |
| |
| |
| | |
Conflicts:
lib/tevent/pytevent.c
|
| |
| |
| |
| | |
metze
|
| |
| |
| |
| | |
metze
|
| |
| |
| |
| | |
metze
|
| | |
|
| | |
|
| | |
|
|/
|
|
| |
tevent.
|
|
|
|
|
|
| |
This can be used as tevent_req based timer event.
metze
|
|
|
|
|
|
| |
This makes more clear what the function does.
metze
|
|
|
|
|
| |
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
|
|
|
|
| |
metze
|
|
|
|
| |
metze
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
- aio events are removed
- tevent_req infrastructure was added
metze
|
|
|
|
|
|
|
| |
This is almost a copy of the async_req code,
which will be removed later.
metze
|
|
|
|
| |
metze
|
|
|
|
| |
metze
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
metze
|
|
|
|
| |
metze
|
| |
|
|
|
|
|
|
| |
This fixes the build on Tru64.
metze
|
| |
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
This makes debugging with gdb easier.
metze
|
|
|
|
| |
metze
|
| |
|