X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmisc.h;h=24d41d1a0e7a5e2ada7d6c5da492e10ff68d86b9;hp=57e86553ffa0b1686ab7c06d8e36a6ba8d75da60;hb=92e759a676b5f2886160fc8f43744f137a0a19b1;hpb=3df2c01b5769c7ae996fb5b992c06e4a5428ad35 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)