sourcey / libsourcey

C++14 evented IO libraries for high performance networking and media based applications
https://sourcey.com/libsourcey
GNU Lesser General Public License v2.1
1.31k stars 344 forks source link

Assertations of thread ids #276

Open mr-kakorin opened 5 years ago

mr-kakorin commented 5 years ago

I do not understand for what purposes there are assertations like src/base/include/scy/handle.h in method assertThread(). Why we should call some methods only from a parent event loop thread? I am speaking about something like this: assert(std::this_thread::get_id() == _tid);