Re: [xHarbour-developers] Chagelog: 2008-06-28 15:25 UTC-0300 Walter Negro

2008-07-02 Thread Maurilio Longo
Walter, I did this change #define HB_ATOMIC_INC( x ) /*( ++(x) )*/ __atomic_increment_s32( (long *) &(x) ) #define HB_ATOMIC_DEC( x ) /*( --(x) )*/ __atomic_decrement_s32( (long *) &(x) ) in the OS/2 branch and I attach the file, but when compiling I get warnings because we

Re: [xHarbour-developers] Chagelog: 2008-06-28 15:25 UTC-0300 Walter Negro

2008-06-30 Thread Walter Negro
Maurilio, Can you send me builtin.h or see xharbour\include\thread.h lines 109 and 110 and do same in lines 197 and 198 with increment/decrement function for OS2. *Walter Negro* /Desarrollo e Investigación/ VsTour - Softmagic S.R.L. *::* * VSTour.COM * *::* Maurilio Lo

Re: [xHarbour-developers] Chagelog: 2008-06-28 15:25 UTC-0300 Walter Negro

2008-06-30 Thread Maurilio Longo
Walter, I've found that with gcc I have a builtin.h header with several atomic functions. There are functions for signed and unsigned 32bits increment/decrement, which one should I use? I see that in windows you cast to a (long *), but hvm.c passes to HB_ATOMIC_INC() a ulHolders, for example, li

Re: [xHarbour-developers] Chagelog: 2008-06-28 15:25 UTC-0300 Walter Negro

2008-06-30 Thread Walter Negro
Maurilio, if you test mtcomplexshare.prg without the change in my commit, you can obtain GPFs or Internal Error (Premature Pointer Release detected). The problem in low level is similar to problem in high level that you see executing mtcomplexshare.prg without mutex. Some platforms or compiler

Re: [xHarbour-developers] Chagelog: 2008-06-28 15:25 UTC-0300 Walter Negro

2008-06-30 Thread Maurilio Longo
Walter, I'm not sure I'm understanding this, but I did a test with mtcomplexshare.prg and I see that nGlobalCounter is protected by a mutex lock/unlock sequence. If I remove those mutex calls on OS/2 with GCC at the end the result shows big differences. 8< Thread 1 - Loca

[xHarbour-developers] Chagelog: 2008-06-28 15:25 UTC-0300 Walter Negro

2008-06-28 Thread Walter Negro
2008-06-28 15:25 UTC-0300 Walter Negro * include\hbdefs.h * include\hbvmpub.h * include\thread.h * source\rtl\hbxml.c * source\vm\arrays.c * source\vm\arrayshb.c * source\vm\codebloc.c * source\vm\fastitem.c * source\vm\fm.c * source\vm\garbage.c * source\vm\hvm.c * source\vm\itemapi.