added: a deadlock counter to Synchro class
now we can use Lock() more than one in the same thread
and next Unlock() will recognize it
sample:
Lock(); // first lock -- resources locked
Lock(); // second lock -- skipped (counter incremented)
...
Unlock(); // first unlock -- skipped (because counter greater than zero)
Unlock(); // second unlock -- actually unlocking
git-svn-id: svn://ttmath.org/publicrep/winix/trunk@830 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -139,8 +139,6 @@ void Job::DoJob(PT::Space & job)
|
||||
{
|
||||
try
|
||||
{
|
||||
// !! FIXME plugin.Call() can log messages
|
||||
// we need Lock/Unlock mechanism there
|
||||
PluginRes res = plugin.Call((Session*)0, WINIX_JOB, &job);
|
||||
|
||||
if( res.res_true == 0 )
|
||||
|
||||
Reference in New Issue
Block a user