Fix: channel management thread should hold a refcount
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 26 Apr 2013 14:27:51 +0000 (10:27 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Fri, 26 Apr 2013 15:26:45 +0000 (11:26 -0400)
commitf2ad556de9fb7e0920938f1e3d4b1fcb0709beb6
treea5db14ea2152a51c8db64a9a2ae11361bfdb7248
parentfc6432477fe8a5d3c4494acccdbe94c5912420bb
Fix: channel management thread should hold a refcount

In order to handle teardown caused by relayd being unresponsive, we need
to ensure that we correctly handle that the streams can be cleaned up
before the channel wakeup pipe gets closed. We achieve this by making
the channel management thread hold a refcount on the channel object, so
it only gets destroyed when all streams, _and_ the channel management
thread, have released their reference.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/common/consumer.c
src/common/ust-consumer/ust-consumer.c
This page took 0.029308 seconds and 4 git commands to generate.