Help save net neutrality! Learn more.
Close

#3 Test if initialized??? double initialize?

open
nobody
None
5
2004-04-27
2004-04-27
Anonymous
No

Hey,

I'm writing a library using openthreads. I cannot
gaurantee whether or not OpenThreads::Thread::Init() is
called outside the library. So I am calling it inside a
singleton class constructor. However, one use of this
library is in an OSG project. It would really be
helpful to know if calling Init() a second time is safe
or have a way to check if it has been called already.

Thanks,

Nick
nick@mcl.ucf.edu

Discussion


Log in to post a comment.