✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ beluga.o2switch.net ​🇻​♯➤ 4.18.0-553.123.2.lve.el8.x86_64 #1 SMP 🇾​♯➤ 2026

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 185.154.139.77 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.254
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ 𝗔𝗟𝗟 𝗪𝗢𝗥𝗞𝗜𝗡𝗚....

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /opt/alt/python37/lib64/python3.7/site-packages/twisted/python//threadable.py
# -*- test-case-name: twisted.python.test_threadable -*-
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.

"""
A module to provide some very basic threading primitives, such as
synchronization.
"""

from __future__ import division, absolute_import

from functools import wraps

class DummyLock(object):
    """
    Hack to allow locks to be unpickled on an unthreaded system.
    """

    def __reduce__(self):
        return (unpickle_lock, ())



def unpickle_lock():
    if threadingmodule is not None:
        return XLock()
    else:
        return DummyLock()
unpickle_lock.__safe_for_unpickling__ = True



def _synchPre(self):
    if '_threadable_lock' not in self.__dict__:
        _synchLockCreator.acquire()
        if '_threadable_lock' not in self.__dict__:
            self.__dict__['_threadable_lock'] = XLock()
        _synchLockCreator.release()
    self._threadable_lock.acquire()



def _synchPost(self):
    self._threadable_lock.release()



def _sync(klass, function):
    @wraps(function)
    def sync(self, *args, **kwargs):
        _synchPre(self)
        try:
            return function(self, *args, **kwargs)
        finally:
            _synchPost(self)
    return sync



def synchronize(*klasses):
    """
    Make all methods listed in each class' synchronized attribute synchronized.

    The synchronized attribute should be a list of strings, consisting of the
    names of methods that must be synchronized. If we are running in threaded
    mode these methods will be wrapped with a lock.
    """
    if threadingmodule is not None:
        for klass in klasses:
            for methodName in klass.synchronized:
                sync = _sync(klass, klass.__dict__[methodName])
                setattr(klass, methodName, sync)



def init(with_threads=1):
    """Initialize threading.

    Don't bother calling this.  If it needs to happen, it will happen.
    """
    global threaded, _synchLockCreator, XLock

    if with_threads:
        if not threaded:
            if threadingmodule is not None:
                threaded = True

                class XLock(threadingmodule._RLock, object):
                    def __reduce__(self):
                        return (unpickle_lock, ())

                _synchLockCreator = XLock()
            else:
                raise RuntimeError("Cannot initialize threading, platform lacks thread support")
    else:
        if threaded:
            raise RuntimeError("Cannot uninitialize threads")
        else:
            pass



_dummyID = object()
def getThreadID():
    if threadingmodule is None:
        return _dummyID
    return threadingmodule.currentThread().ident



def isInIOThread():
    """Are we in the thread responsible for I/O requests (the event loop)?
    """
    return ioThread == getThreadID()



def registerAsIOThread():
    """Mark the current thread as responsible for I/O requests.
    """
    global ioThread
    ioThread = getThreadID()


ioThread = None
threaded = False
# Define these globals which might be overwritten in init().
_synchLockCreator = None
XLock = None


try:
    import threading as threadingmodule
except ImportError:
    threadingmodule = None
else:
    init(True)



__all__ = ['isInIOThread', 'registerAsIOThread', 'getThreadID', 'XLock']


Current_dir [ 𝗡𝗢𝗧 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
1 Jan 1970 12.00 AM
root / root
0
__pycache__
--
25 Jul 2024 8.43 AM
root / linksafe
0755
_pydoctortemplates
--
25 Jul 2024 8.43 AM
root / linksafe
0755
test
--
25 Jul 2024 8.43 AM
root / linksafe
0755
__init__.py
0.658 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
_appdirs.py
0.77 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
_inotify.py
3.374 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
_oldstyle.py
2.532 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
_release.py
18.34 KB
18 Mar 2020 8.27 AM
root / linksafe
0644
_setup.py
13.946 KB
8 Mar 2020 10.44 AM
root / linksafe
0644
_shellcomp.py
24.248 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
_textattributes.py
8.866 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
_tzhelper.py
3.117 KB
26 May 2019 5.43 AM
root / linksafe
0644
_url.py
0.247 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
compat.py
23.196 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
components.py
13.92 KB
8 Mar 2020 10.44 AM
root / linksafe
0644
constants.py
0.531 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
context.py
3.93 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
deprecate.py
26.316 KB
18 Dec 2019 3.37 AM
root / linksafe
0644
failure.py
26.918 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
fakepwd.py
5.994 KB
26 May 2019 5.43 AM
root / linksafe
0644
filepath.py
57.507 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
formmethod.py
11.191 KB
26 May 2019 5.43 AM
root / linksafe
0644
htmlizer.py
3.458 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
lockfile.py
7.537 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
log.py
21.945 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
logfile.py
9.847 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
modules.py
26.505 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
monkey.py
2.175 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
procutils.py
1.386 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
randbytes.py
3.866 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
rebuild.py
9.051 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
reflect.py
19.021 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
release.py
1.164 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
roots.py
7.23 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
runtime.py
6.07 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
sendmsg.py
3.34 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
shortcut.py
2.2 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
syslog.py
3.643 KB
26 May 2019 5.43 AM
root / linksafe
0644
systemd.py
2.768 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
text.py
5.354 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
threadable.py
3.22 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
threadpool.py
9.609 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
twisted-completion.zsh
1.339 KB
15 Jun 2019 9.59 PM
root / linksafe
0644
url.py
0.238 KB
26 May 2019 5.43 AM
root / linksafe
0644
urlpath.py
8.871 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
usage.py
34.182 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
util.py
27.276 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
versions.py
0.314 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
win32.py
4.216 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
zippath.py
9.021 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
zipstream.py
9.528 KB
18 Dec 2019 3.08 AM
root / linksafe
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF