Compliment you have made point six of your todo > 6, HB_LIBLOAD()/__HRBLOAD() may not be MT safe in some cases. > Before they will not be resolved please try to not use this > functions when other threads are executed.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Przemyslaw Czerpak Sent: Monday, October 13, 2008 8:22 PM To: harbour@harbour-project.org Subject: [Harbour] 2008-10-13 20:21 UTC+0200 Przemyslaw Czerpak(druzus/at/priv.onet.pl) 2008-10-13 20:21 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/source/rdd/wacore.c ; updated comments about xbase++ behavior in dbRelease() * harbour/include/hbvm.h * harbour/source/vm/hvm.c * harbour/source/vm/dynlibhb.c * harbour/source/vm/runner.c ! added MT protection for HB_LIBLOAD()/HB_LIBFREE() and HB_HRBLOAD()/HB_HRBUNLOAD(). Please remember that you should not use any external LoadLibrary() functions because they are not protected for clean PCODE modules loading/unloading even in ST mode. Using them can cause HVM internal structure corruption. If we have such functions in contrib then they should be redirected to our HVM ones. There is still one problem in MT mode which has to be resolved yet. When dynamic library containing PCODE using static variables is loaded 1-st time then it will force resizing of internal array with static variables. If in exactly the same moment some other thread operates on static variable then it may cause corruption. To resolve this problem we will have to divide continuous memory block common for all modules where we store all static variables into separated blocks bound with each PCODE module (symbol table). * harbour/source/vm/dynlibhb.c + added support for DLL loading/unloading in OS2 builds. Based on xHarbour code by Maurilio Longo - please test. best regards Przemek _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
_______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour