How can be known a fuc. is thread-safe or not ?
Hello !
How can I determine (understand) a function is thread-safe or not,
may be stupid question but for eaxample Assigned function
in other thread
There is abit confusion in my thread codes
in my thread's Execute
and another threads or main thread resumes or setEvent for this waiting thread...
How can I determine (understand) a function is thread-safe or not,
may be stupid question but for eaxample Assigned function
- Code: Select all
if Assigned(tempObject) then // check if points some
or ...
if tempObject = nil then // is this threadsafe
...
in other thread
- Code: Select all
if SOmeThread.Suspended then //check if suspended
...
There is abit confusion in my thread codes
in my thread's Execute
- Code: Select all
...
if something then
suspend
else
terminateEvent.waitfor(...);
...
and another threads or main thread resumes or setEvent for this waiting thread...