On 01/13/2012 09:59 AM, Noel Grandin wrote:

Surely now that it's confined to a single thread, it can just call
AttachThread() once at startup, and never need to call DetachThread() ?

Yes, one could improve it further based on the fact that it is confied now (it also internally uses some mutices that could go now). But: "However, a better fix would still be to redesign the code so that it does not call Attach/DetachCurrentThread so frequently [and confinement to the thread-affine apartment can be undone again.]", <http://cgit.freedesktop.org/libreoffice/core/tree/connectivity/source/drivers/jdbc/jservices.cxx?id=bb59742bcf4883af5876a2ffadcc4a689e414b60#n95>.

Stephan
_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to