Re: How do I stop a thread

Wan-Teh Chang <[email protected]> Thu, 29 Jan 2009 12:17:17 -0800
Newsgroups gmane.comp.mozilla.devel.nspr
Message-ID <[email protected]>
One more thought:

You can also create a thread to call mysql_real_connect,
and use thread synchronization between the original thread
and this thread to signal that mysql_real_connect has
completed.

If the original thread decides it cannot wait any longer,
it can set a shared variable to indicate to this thread
that it is no longer interested in the result of
mysql_real_connect.

Wan-Teh