Implement thread_ctrl::is_main()

This commit is contained in:
Nekotekina 2021-03-06 21:02:37 +03:00
parent 55c75d2c87
commit 3609eb25c9
3 changed files with 10 additions and 0 deletions

View file

@ -377,6 +377,8 @@ int main(int argc, char** argv)
}
#endif
ensure(thread_ctrl::is_main());
// Initialize TSC freq (in case it isn't)
static_cast<void>(utils::get_tsc_freq());