|
|
|
@ -23,16 +23,17 @@ namespace CppSharp.Passes |
|
|
|
get { return wait; } |
|
|
|
get { return wait; } |
|
|
|
set |
|
|
|
set |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (wait != value) |
|
|
|
if (wait == value) |
|
|
|
{ |
|
|
|
return; |
|
|
|
wait = value; |
|
|
|
|
|
|
|
if (!wait && manualResetEvent != null) |
|
|
|
wait = value; |
|
|
|
{ |
|
|
|
|
|
|
|
manualResetEvent.Set(); |
|
|
|
if (wait || manualResetEvent == null) |
|
|
|
manualResetEvent.Dispose(); |
|
|
|
return; |
|
|
|
manualResetEvent = null; |
|
|
|
|
|
|
|
} |
|
|
|
manualResetEvent.Set(); |
|
|
|
} |
|
|
|
manualResetEvent.Dispose(); |
|
|
|
|
|
|
|
manualResetEvent = null; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|