Question about thread

in Help Center
I want to build a DLL and then any application can invoke the APIs in the dll. Now My question is how can I implement a thread in which one Api would to be called every minute in the DLL.the API is invoke one methos in the server.
Help me!
Help me!
0
Comments
IceUtil::Mutex::Lock lock(_mutex);
while(!_done)
{
callMyAPI();
_condVar.timedWait(lock, IceUtil::Time::seconds(60));
}
Cheers,
Bernard