Posts: 845
Threads: 3
Joined: Jun 2010
Quote:
Originally Posted by kurta999
What would be, if you create another thread for connenection to the database? Because now mysql_connect() will hang up the server.
Best solution would be create thread for this and call a callback, when connection success or failed.
|
That's how it works now. All connections (except the unthreaded connection ofc) are established in another thread than the main thread, so 'mysql_connect' doesn't hang up the server.