Commit: 77c0e84f2403278177ada66a7c0dfccc61c851c2
Parent: 8587edd4c212c8093c643c1872192b28d221e91c
Author: Arman Uguray <armansito@chromium.org>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2014-08-15 10:52:07
Tree: 359f3873f09f21c202fa3bc2b0c8c003915ea000

shared/io-mainloop: Increment the ref count inside io_callback. Incrementing the reference count before invoking the event handlers and decrementing it thereafter allows io_destroy to be safely called from within the event callbacks. This patch achieves that.

Diffstat

M src/shared/io-mainloop.c | 5 +++++

1 files changed, 5 insertions(+), 0 deletions(-)

View Full Diff | Patch