X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fmisc.h;h=24d41d1a0e7a5e2ada7d6c5da492e10ff68d86b9;hb=8dcb4bc3cce1f487cfac65ed20d21378d0f39b2e;hp=57e86553ffa0b1686ab7c06d8e36a6ba8d75da60;hpb=520e680278964931abcaf3e1ab89b24423777999;p=stockfish diff --git a/src/misc.h b/src/misc.h index 57e86553..24d41d1a 100644 --- a/src/misc.h +++ b/src/misc.h @@ -65,4 +65,11 @@ private: std::vector e; }; + +enum SyncCout { io_lock, io_unlock }; +std::ostream& operator<<(std::ostream&, SyncCout); + +#define sync_cout std::cout << io_lock +#define sync_endl std::endl << io_unlock + #endif // !defined(MISC_H_INCLUDED)