[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[Libevent-users] bufferevent_base_set and threads
- To: libevent-users@xxxxxxxxxxxxx
- Subject: [Libevent-users] bufferevent_base_set and threads
- From: Scott Dorr <j.scott.dorr@xxxxxxxxx>
- Date: Mon, 5 Aug 2019 16:41:45 -0700
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: libevent-users-outgoing@xxxxxxxx
- Delivered-to: libevent-users@xxxxxxxx
- Delivery-date: Mon, 05 Aug 2019 19:41:51 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=content-transfer-encoding:from:mime-version:date:subject:message-id :to; bh=DioBcNBlPumalpD4yg3BUpAjXO3XNxFe11R66lEpnJc=; b=Xe9ezTpFTeYHCviu9PuvCGsox5DGDTJV6LmPq2cE8KJlrg59sYOPMQCr9RFnBXlioI syWeI5M05j2rK/PYVM/qcq8VIDwlMbdFQGVtMr2pv1Nkj1b6tzR+it1vz5awRSmf3q25 RegvrCrTWDWxyoPD/XPymmE7yoOS9Y5EsuY0GXMt1mCagW1RdMpbNPjA7+FkEXvCDy3Y i2GlR7jZJZOxfQ2EiXuRy1RGYs1zYjY3q8xnapv4+84e3R3fOHJ+C+FIKanK8hHB1+iv IAXg91AOp6DZPpexs52Odg0fm34ClzHk4vkWF48G5gx4cnQxO856emH5BWtwTeiUdolx m/Fg==
- Reply-to: libevent-users@xxxxxxxxxxxxx
- Sender: owner-libevent-users@xxxxxxxxxxxxx
ThreadA receives a new connection and creates a new bufferevent to handle the IO. Sometime later, it needs to hand responsibility for that connection off to another thread.
Can ThreadA use something like bufferevent_base_set to ‘move’ that bufferevent to the other thread (ThreadB) so that callbacks associated with it are triggered in ThreadB’s context?
- scott***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users in the body.