Python six.moves._thread.allocate_lock() Examples
The following are 30
code examples of six.moves._thread.allocate_lock().
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
six.moves._thread
, or try the search function
.
Example #1
Source File: tz.py From CogAlg with MIT License | 5 votes |
def __init__(self, tzid, comps=[]): super(_tzicalvtz, self).__init__() self._tzid = tzid self._comps = comps self._cachedate = [] self._cachecomp = [] self._cache_lock = _thread.allocate_lock()
Example #2
Source File: tz.py From AWS-Transit-Gateway-Demo-MultiAccount with MIT License | 5 votes |
def __init__(self, tzid, comps=[]): super(_tzicalvtz, self).__init__() self._tzid = tzid self._comps = comps self._cachedate = [] self._cachecomp = [] self._cache_lock = _thread.allocate_lock()
Example #3
Source File: rrule.py From AWS-Transit-Gateway-Demo-MultiAccount with MIT License | 5 votes |
def __init__(self, cache=False): if cache: self._cache = [] self._cache_lock = _thread.allocate_lock() self._invalidate_cache() else: self._cache = None self._cache_complete = False self._len = None
Example #4
Source File: tz.py From AWS-Transit-Gateway-Demo-MultiAccount with MIT License | 5 votes |
def __init__(self, tzid, comps=[]): super(_tzicalvtz, self).__init__() self._tzid = tzid self._comps = comps self._cachedate = [] self._cachecomp = [] self._cache_lock = _thread.allocate_lock()
Example #5
Source File: rrule.py From planespotter with MIT License | 5 votes |
def __init__(self, cache=False): if cache: self._cache = [] self._cache_lock = _thread.allocate_lock() self._invalidate_cache() else: self._cache = None self._cache_complete = False self._len = None
Example #6
Source File: rrule.py From aws-extender with MIT License | 5 votes |
def __init__(self, cache=False): if cache: self._cache = [] self._cache_lock = _thread.allocate_lock() self._invalidate_cache() else: self._cache = None self._cache_complete = False self._len = None
Example #7
Source File: tz.py From aws-extender with MIT License | 5 votes |
def __init__(self, tzid, comps=[]): super(_tzicalvtz, self).__init__() self._tzid = tzid self._comps = comps self._cachedate = [] self._cachecomp = [] self._cache_lock = _thread.allocate_lock()
Example #8
Source File: rrule.py From sublime-elasticsearch-client with MIT License | 5 votes |
def __init__(self, cache=False): if cache: self._cache = [] self._cache_lock = _thread.allocate_lock() self._cache_gen = self._iter() self._cache_complete = False else: self._cache = None self._cache_complete = False self._len = None
Example #9
Source File: rrule.py From Splunking-Crime with GNU Affero General Public License v3.0 | 5 votes |
def __init__(self, cache=False): if cache: self._cache = [] self._cache_lock = _thread.allocate_lock() self._invalidate_cache() else: self._cache = None self._cache_complete = False self._len = None
Example #10
Source File: rrule.py From elasticintel with GNU General Public License v3.0 | 5 votes |
def __init__(self, cache=False): if cache: self._cache = [] self._cache_lock = _thread.allocate_lock() self._invalidate_cache() else: self._cache = None self._cache_complete = False self._len = None
Example #11
Source File: rrule.py From bazarr with GNU General Public License v3.0 | 5 votes |
def __init__(self, cache=False): if cache: self._cache = [] self._cache_lock = _thread.allocate_lock() self._invalidate_cache() else: self._cache = None self._cache_complete = False self._len = None
Example #12
Source File: rrule.py From CogAlg with MIT License | 5 votes |
def __init__(self, cache=False): if cache: self._cache = [] self._cache_lock = _thread.allocate_lock() self._invalidate_cache() else: self._cache = None self._cache_complete = False self._len = None
Example #13
Source File: rrule.py From AWS-Transit-Gateway-Demo-MultiAccount with MIT License | 5 votes |
def __init__(self, cache=False): if cache: self._cache = [] self._cache_lock = _thread.allocate_lock() self._invalidate_cache() else: self._cache = None self._cache_complete = False self._len = None
Example #14
Source File: _factories.py From CogAlg with MIT License | 5 votes |
def __init__(cls, *args, **kwargs): cls.__instances = weakref.WeakValueDictionary() cls.__strong_cache = OrderedDict() cls.__strong_cache_size = 8 cls._cache_lock = _thread.allocate_lock()
Example #15
Source File: _factories.py From CogAlg with MIT License | 5 votes |
def __init__(cls, *args, **kwargs): cls.__instances = weakref.WeakValueDictionary() cls.__strong_cache = OrderedDict() cls.__strong_cache_size = 8 cls.__cache_lock = _thread.allocate_lock()
Example #16
Source File: rrule.py From Tautulli with GNU General Public License v3.0 | 5 votes |
def __init__(self, cache=False): if cache: self._cache = [] self._cache_lock = _thread.allocate_lock() self._cache_gen = self._iter() self._cache_complete = False else: self._cache = None self._cache_complete = False self._len = None
Example #17
Source File: rrule.py From aws-builders-fair-projects with Apache License 2.0 | 5 votes |
def __init__(self, cache=False): if cache: self._cache = [] self._cache_lock = _thread.allocate_lock() self._invalidate_cache() else: self._cache = None self._cache_complete = False self._len = None
Example #18
Source File: tz.py From aws-builders-fair-projects with Apache License 2.0 | 5 votes |
def __init__(self, tzid, comps=[]): super(_tzicalvtz, self).__init__() self._tzid = tzid self._comps = comps self._cachedate = [] self._cachecomp = [] self._cache_lock = _thread.allocate_lock()
Example #19
Source File: rrule.py From aws-builders-fair-projects with Apache License 2.0 | 5 votes |
def __init__(self, cache=False): if cache: self._cache = [] self._cache_lock = _thread.allocate_lock() self._invalidate_cache() else: self._cache = None self._cache_complete = False self._len = None
Example #20
Source File: tz.py From aws-builders-fair-projects with Apache License 2.0 | 5 votes |
def __init__(self, tzid, comps=[]): super(_tzicalvtz, self).__init__() self._tzid = tzid self._comps = comps self._cachedate = [] self._cachecomp = [] self._cache_lock = _thread.allocate_lock()
Example #21
Source File: rrule.py From aws-kube-codesuite with Apache License 2.0 | 5 votes |
def __init__(self, cache=False): if cache: self._cache = [] self._cache_lock = _thread.allocate_lock() self._invalidate_cache() else: self._cache = None self._cache_complete = False self._len = None
Example #22
Source File: rrule.py From android_universal with MIT License | 5 votes |
def __init__(self, cache=False): if cache: self._cache = [] self._cache_lock = _thread.allocate_lock() self._invalidate_cache() else: self._cache = None self._cache_complete = False self._len = None
Example #23
Source File: tz.py From android_universal with MIT License | 5 votes |
def __init__(self, tzid, comps=[]): super(_tzicalvtz, self).__init__() self._tzid = tzid self._comps = comps self._cachedate = [] self._cachecomp = [] self._cache_lock = _thread.allocate_lock()
Example #24
Source File: rrule.py From deepWordBug with Apache License 2.0 | 5 votes |
def __init__(self, cache=False): if cache: self._cache = [] self._cache_lock = _thread.allocate_lock() self._invalidate_cache() else: self._cache = None self._cache_complete = False self._len = None
Example #25
Source File: tz.py From plugin.video.emby with GNU General Public License v3.0 | 5 votes |
def __init__(self, tzid, comps=[]): super(_tzicalvtz, self).__init__() self._tzid = tzid self._comps = comps self._cachedate = [] self._cachecomp = [] self._cache_lock = _thread.allocate_lock()
Example #26
Source File: rrule.py From recruit with Apache License 2.0 | 5 votes |
def __init__(self, cache=False): if cache: self._cache = [] self._cache_lock = _thread.allocate_lock() self._invalidate_cache() else: self._cache = None self._cache_complete = False self._len = None
Example #27
Source File: tz.py From recruit with Apache License 2.0 | 5 votes |
def __init__(self, tzid, comps=[]): super(_tzicalvtz, self).__init__() self._tzid = tzid self._comps = comps self._cachedate = [] self._cachecomp = [] self._cache_lock = _thread.allocate_lock()
Example #28
Source File: rrule.py From faces with GNU General Public License v2.0 | 5 votes |
def __init__(self, cache=False): if cache: self._cache = [] self._cache_lock = _thread.allocate_lock() self._invalidate_cache() else: self._cache = None self._cache_complete = False self._len = None
Example #29
Source File: rrule.py From faces with GNU General Public License v2.0 | 5 votes |
def __init__(self, cache=False): if cache: self._cache = [] self._cache_lock = _thread.allocate_lock() self._invalidate_cache() else: self._cache = None self._cache_complete = False self._len = None
Example #30
Source File: rrule.py From vnpy_crypto with MIT License | 5 votes |
def __init__(self, cache=False): if cache: self._cache = [] self._cache_lock = _thread.allocate_lock() self._invalidate_cache() else: self._cache = None self._cache_complete = False self._len = None