Thread creations and terminations

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Benny,


> What if, instead of using callback, you put a flag in the thread, to
> mark whether the thread has been DAO initialized or not. This can be

Your suggestion sounds a bit better than what I do at the moment
(GetLocalThreadId() from within callback and then checking whether the ID is
already in global list - if not - do AfxDaoInit() and store the thread ID in
the list), but it suffers the same problem; AfxDaoTerm() never gets called at
termination of a thread. Any other ideas to make it 'clean'?


Greets, Toni

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.





[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux