Add _dummy_thread._count

This commit is contained in:
Jeong YunWon committed 2022-08-17 02:16:51 +09:00
1 parent 840bb5aee8
commit 8f683b94d5
1 file changed
+6 -1
+6 -1
View File
@@ -14,7 +14,8 @@ Suggested usage is::
# Exports only things specified by thread documentation;
# skipping obsolete synonyms allocate(), start_new(), exit_thread().
__all__ = ['error', 'start_new_thread', 'exit', 'get_ident', 'allocate_lock',
'interrupt_main', 'LockType', 'RLock']
'interrupt_main', 'LockType', 'RLock',
'_count']
# A dummy value
TIMEOUT_MAX = 2**31
@@ -85,6 +86,10 @@ def _set_sentinel():
"""Dummy implementation of _thread._set_sentinel()."""
return LockType()
def _count():
"""Dummy implementation of _thread._count()."""
return 0
class LockType(object):
"""Class implementing dummy implementation of _thread.LockType.