OSDN Git Service

STPK-1429 Reduce worker thread exit latency
authorPatrick Porlan <patrick.porlan@intel.com>
Tue, 15 Jul 2014 10:14:43 +0000 (12:14 +0200)
committerAdriana Reus <adriana.reus@intel.com>
Wed, 23 Jul 2014 08:48:34 +0000 (11:48 +0300)
commitf9635becefaca6e9e062be9a58e0ef2fdd3cf993
tree79d17aa0cf1a9065bc57141e95e0bc773f327150
parent345931b294daa55f0ffdcd7332a69bdf9775a466
STPK-1429 Reduce worker thread exit latency

We use condition variables as a mean to interrupt
sleep for all worker threads so they can reevaluate
their exit condition, as well as react a bit quicker
to sampling rate updates.

Change-Id: I3f11b5b103594f0d0e4f04ec14a4cd2521804abf
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
control.c