thread stuff...

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
aszid
Enthusiast
Enthusiast
Posts: 162
Joined: Thu May 01, 2003 8:38 pm
Location: California, USA
Contact:

thread stuff...

Post by aszid »

ok, well i know that strings in threads are on the way... but i would like to request a few features that would be extremely helpfull until they were here. here's my ideas:

Request(string.s,mode) - request access to a global string, mode could be one of the following: wait mode - pauses the thread until access to the variable is granted, then resumes. immediate - will return a value telling if the variable is available, if it is available it will be "locked" for the thread's use.

release(string.s) - release access to a global variable that has been requested by the current thread.

i think these would make using threads incredibly easier and safer
--Aszid--

Making crazy people sane, starting tomorrow.