Python _thread._set_sentinel() Examples

The following are 12 code examples of _thread._set_sentinel(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module _thread , or try the search function .
Example #1
Source File: _dummy_thread.py    From kobo-predict with BSD 2-Clause "Simplified" License 5 votes vote down vote up
def _set_sentinel():
    """Dummy implementation of _thread._set_sentinel()."""
    return LockType() 
Example #2
Source File: _dummy_thread.py    From GraphicDesignPatternByPython with MIT License 5 votes vote down vote up
def _set_sentinel():
    """Dummy implementation of _thread._set_sentinel()."""
    return LockType() 
Example #3
Source File: _dummy_thread.py    From Fluid-Designer with GNU General Public License v3.0 5 votes vote down vote up
def _set_sentinel():
    """Dummy implementation of _thread._set_sentinel()."""
    return LockType() 
Example #4
Source File: threading.py    From Fluid-Designer with GNU General Public License v3.0 5 votes vote down vote up
def _set_tstate_lock(self):
        """
        Set a lock object which will be released by the interpreter when
        the underlying thread state (see pystate.h) gets deleted.
        """
        self._tstate_lock = _set_sentinel()
        self._tstate_lock.acquire() 
Example #5
Source File: _dummy_thread.py    From Imogen with MIT License 5 votes vote down vote up
def _set_sentinel():
    """Dummy implementation of _thread._set_sentinel()."""
    return LockType() 
Example #6
Source File: threading.py    From Imogen with MIT License 5 votes vote down vote up
def _set_tstate_lock(self):
        """
        Set a lock object which will be released by the interpreter when
        the underlying thread state (see pystate.h) gets deleted.
        """
        self._tstate_lock = _set_sentinel()
        self._tstate_lock.acquire() 
Example #7
Source File: _dummy_thread.py    From scylla with Apache License 2.0 5 votes vote down vote up
def _set_sentinel():
    """Dummy implementation of _thread._set_sentinel()."""
    return LockType() 
Example #8
Source File: _dummy_thread.py    From ironpython3 with Apache License 2.0 5 votes vote down vote up
def _set_sentinel():
    """Dummy implementation of _thread._set_sentinel()."""
    return LockType() 
Example #9
Source File: threading.py    From ironpython3 with Apache License 2.0 5 votes vote down vote up
def _set_tstate_lock(self):
        """
        Set a lock object which will be released by the interpreter when
        the underlying thread state (see pystate.h) gets deleted.
        """
        self._tstate_lock = _set_sentinel()
        self._tstate_lock.acquire() 
Example #10
Source File: _dummy_thread.py    From Project-New-Reign---Nemesis-Main with GNU General Public License v3.0 5 votes vote down vote up
def _set_sentinel():
    """Dummy implementation of _thread._set_sentinel()."""
    return LockType() 
Example #11
Source File: threading.py    From Project-New-Reign---Nemesis-Main with GNU General Public License v3.0 5 votes vote down vote up
def _set_tstate_lock(self):
        """
        Set a lock object which will be released by the interpreter when
        the underlying thread state (see pystate.h) gets deleted.
        """
        self._tstate_lock = _set_sentinel()
        self._tstate_lock.acquire() 
Example #12
Source File: _dummy_thread.py    From android_universal with MIT License 5 votes vote down vote up
def _set_sentinel():
    """Dummy implementation of _thread._set_sentinel()."""
    return LockType()