Before converting the functions in all classes (60) using preemptive threading I would like to be sure if the conversion method is correct.
Old features :
var result as boolean
MSMSemaphore.signal
Try
''' Code write shared variable
Catch
end Try
MSMSemaphore.release
return result
New features :
var result as boolean
var SyncThread as new LockHolder( SemaphoreObj)
''' Code write shared variable
SyncThread = nil
return result
It looks like Semaphore is used as a synclock-like object in VB. Is that so?
Are there any other things to pay attention to?
6 posts - 3 participants