File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -191,6 +191,7 @@ _multiprocessing_SemLock_release_impl(SemLockObject *self)
191
191
assert (self -> count == 1 );
192
192
}
193
193
194
+ -- self -> count ;
194
195
if (!ReleaseSemaphore (self -> handle , 1 , NULL )) {
195
196
if (GetLastError () == ERROR_TOO_MANY_POSTS ) {
196
197
PyErr_SetString (PyExc_ValueError , "semaphore or lock "
@@ -201,7 +202,6 @@ _multiprocessing_SemLock_release_impl(SemLockObject *self)
201
202
}
202
203
}
203
204
204
- -- self -> count ;
205
205
Py_RETURN_NONE ;
206
206
}
207
207
@@ -437,10 +437,10 @@ _multiprocessing_SemLock_release_impl(SemLockObject *self)
437
437
#endif
438
438
}
439
439
440
+ -- self -> count ;
440
441
if (sem_post (self -> handle ) < 0 )
441
442
return PyErr_SetFromErrno (PyExc_OSError );
442
443
443
- -- self -> count ;
444
444
Py_RETURN_NONE ;
445
445
}
446
446
You can’t perform that action at this time.
0 commit comments