Hello all,

I am still not able to get the MySQL directory to work multi-threaded.  I have 
been working on this off and on that last month and several days the last few 
weeks with no luck.  It seems to work fine single-threaded.  I have verified 
each thread has its own DbMySqlDirectory each with a unique connection to the 
database.


I have not received any responses from my post on the MySQL C API forum and the 
response on the #mysql IRC was "C and C++ are complicated".

I do have some simple sample code from the MySQL community documentation that 
does run multi-threaded.  Interesting the original code used locks to provide 
exclusive access to the MySQL database which sort-of removes most of the 
benefits of running MySQL multi-threaded.  I removed the locks and it seems to 
work fine.  However this sample code does not use prepared statements.  I am 
not sure if that makes any difference.

I thought I would relay my status on the DB Backend.  If desired, I could 
check-in a version of the Directory that essentially serializes MySQL access 
even in multi-threaded environments to use until the multi-threading issue gets 
worked out.  Getting the MySQL part of the Directory to properly work 
multi-threaded may take awhile.  What do you think?

Thanks,

John
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Mira-development mailing list
Mira-development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mira-development

Reply via email to