Re: [scite] For your consideration, my SciTE Job Queue implementation

2007-08-05 Thread Neil Hodgson
April White: Can anyone confirm whether InterlockedExchange() exists in GTK? I think the closest is g_atomic_int_compare_and_exchange but it will be simpler to just implement the functionality using a mutex. Neil ___ Scite-interest mailing li

Re: [scite] For your consideration, my SciTE Job Queue implementation

2007-08-04 Thread April White
Neil Hodgson wrote: The cancelFlag is used in both the UI thread and the execution thread so should be protected. That is why InterlockedExchange is used in the current code. The same effect should be possible by using the JobQueue mutex in an int SetCancelFlag(int value) method. Can anyon

Re: [scite] For your consideration, my SciTE Job Queue implementation

2007-08-04 Thread April White
Neil Hodgson wrote: The cancelFlag is used in both the UI thread and the execution thread so should be protected. That is why InterlockedExchange is used in the current code. The same effect should be possible by using the JobQueue mutex in an int SetCancelFlag(int value) method. The IDM_F

Re: [scite] For your consideration, my SciTE Job Queue implementation

2007-07-31 Thread Neil Hodgson
> I have uploaded to: > ... long cancelFlag; /* only one job can be executing at a time, this should be safe as a public variable of the class */ The cancelFlag is used in both the UI thread and the execution thread so should be protected. That is why InterlockedExchange is used in the

[scite] For your consideration, my SciTE Job Queue implementation

2007-07-29 Thread April White
I have uploaded to: http://www.scintilla.org/aprilw/scite-v174dev-april-2007-07-29.zip the source code for my implementation a replacement for the SciTE command system, for both Win32 and GTK. I've included Changelog-AprilW.tx