Re: [Libevent-users] cancel pending events on bufferevent

2012-09-23 Thread Vadym S. Khondar
23.09.12 20:02, Adrian Chadd написав(ла): On 23 September 2012 07:50, Vadym S. Khondar wrote: (The task is: after certain point need to give up on bufferevent without any callbacks invoked as they might be called with already freed structs as cbarg). The oft-overlooked problem with threaded

Re: [Libevent-users] cancel pending events on bufferevent

2012-09-23 Thread Adrian Chadd
On 23 September 2012 07:50, Vadym S. Khondar wrote: > (The task is: after certain point need to give up on bufferevent without any > callbacks invoked as they might be called with already freed structs as > cbarg). The oft-overlooked problem with threaded code is that you can't guarantee you can

[Libevent-users] cancel pending events on bufferevent

2012-09-23 Thread Vadym S. Khondar
Hello! As the documentation states: "Bufferevents are internally reference-counted, so if the bufferevent has pending deferred callbacks when you free it, it won’t be deleted until the callbacks are done." Is there a way to cancel execution of pending deferred callbacks? (The task is: after