notify: use C++11 initializer

This commit is contained in:
Max Kellermann 2016-12-29 11:41:22 +01:00
parent 7ec707927d
commit a421c1dbfb

View File

@ -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