We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 858e5ba + a79b6c3 commit daa00bdCopy full SHA for daa00bd
ZmqContext.h
@@ -10,7 +10,9 @@ class ZmqContext
10
ZmqContext(int iothreads, int defaultLinger);
11
~ZmqContext();
12
static ZmqContext *instance(int iothreads=4, int defaultLinger = 0) {
13
- return self_ ? self_ : new ZmqContext(iothreads, defaultLinger);
+ if (!self_)
14
+ self_ = new ZmqContext(iothreads, defaultLinger);
15
+ return self_;
16
}
17
18
static int majorVersion();
0 commit comments