MCPcopy Create free account
hub / github.com/digego/extempore / isCurrentThread

Method isCurrentThread

src/EXTThread.cpp:239–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237 }
238
239 bool EXTThread::isCurrentThread()
240 {
241#ifdef EXT_BOOST
242 return (bthread.get_id() == boost::this_thread::get_id());
243#else
244 return pthread_equal(pthread_self(), pthread);
245#endif
246 }
247
248#ifdef EXT_BOOST
249 boost::thread& EXTThread::getBthread()

Callers 1

IMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected