notify: use C++11 initializer
This commit is contained in:
parent
7ec707927d
commit
a421c1dbfb
@ -26,12 +26,7 @@
|
|||||||
struct notify {
|
struct notify {
|
||||||
Mutex mutex;
|
Mutex mutex;
|
||||||
Cond cond;
|
Cond cond;
|
||||||
bool pending;
|
bool pending = false;
|
||||||
|
|
||||||
#ifdef __GLIBC__
|
|
||||||
constexpr
|
|
||||||
#endif
|
|
||||||
notify():pending(false) {}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Wait for a notification. Return immediately if we have already
|
* Wait for a notification. Return immediately if we have already
|
||||||
|
Loading…
Reference in New Issue
Block a user