summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/sys/Serializer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/qpid/sys/Serializer.cpp')
-rw-r--r--cpp/src/qpid/sys/Serializer.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/cpp/src/qpid/sys/Serializer.cpp b/cpp/src/qpid/sys/Serializer.cpp
index 6d6caff5a1..f02e51ddb4 100644
--- a/cpp/src/qpid/sys/Serializer.cpp
+++ b/cpp/src/qpid/sys/Serializer.cpp
@@ -29,12 +29,8 @@
namespace qpid {
namespace sys {
-SerializerBase::SerializerBase(bool allowImmediate, VoidFn0 notifyDispatchFn)
- : state(IDLE), immediate(allowImmediate), notifyDispatch(notifyDispatchFn)
-{
- if (notifyDispatch.empty())
- notifyDispatch = boost::bind(&SerializerBase::notifyWorker, this);
-}
+SerializerBase::SerializerBase(bool allowImmediate)
+ : state(IDLE), immediate(allowImmediate) {}
void SerializerBase::shutdown() {
{
@@ -48,6 +44,7 @@ void SerializerBase::shutdown() {
}
void SerializerBase::notifyWorker() {
+ // Call with lock held.
if (!worker.id())
worker = Thread(*this);
else