OwlCyberSecurity - MANAGER
Edit File: threadable.pyc
� `��ac @` s d Z d d l m Z m Z d d l m Z d e f d � � YZ d � Z e e _ d � Z d � Z d � Z d � Z d d � Z e � Z d � Z d � Z d � Z d a e a d a d a y d d l Z Wn e k r� d Z n Xe e � d d d d g Z d S( sT A module to provide some very basic threading primitives, such as synchronization. i ( t divisiont absolute_import( t wrapst DummyLockc B` s e Z d Z d � Z RS( sF Hack to allow locks to be unpickled on an unthreaded system. c C` s t d f S( N( ( t unpickle_lock( t self( ( s\ /opt/cpanel-ccs/.develop/virtualenv/lib/python2.7/site-packages/twisted/python/threadable.pyt __reduce__ s ( t __name__t __module__t __doc__R ( ( ( s\ /opt/cpanel-ccs/.develop/virtualenv/lib/python2.7/site-packages/twisted/python/threadable.pyR s c C` s t d k r t � St � Sd S( N( t threadingmodulet Nonet XLockR ( ( ( s\ /opt/cpanel-ccs/.develop/virtualenv/lib/python2.7/site-packages/twisted/python/threadable.pyR s c C` sY d | j k rH t j � d | j k r; t � | j d <n t j � n | j j � d S( Nt _threadable_lock( t __dict__t _synchLockCreatort acquireR t releaseR ( R ( ( s\ /opt/cpanel-ccs/.develop/virtualenv/lib/python2.7/site-packages/twisted/python/threadable.pyt _synchPre! s c C` s | j j � d S( N( R R ( R ( ( s\ /opt/cpanel-ccs/.develop/virtualenv/lib/python2.7/site-packages/twisted/python/threadable.pyt _synchPost+ s c ` s t � � � f d � � } | S( Nc ` s0 t | � z � | | | � SWd t | � Xd S( N( R R ( R t argst kwargs( t function( s\ /opt/cpanel-ccs/.develop/virtualenv/lib/python2.7/site-packages/twisted/python/threadable.pyt sync1 s ( R ( t klassR R ( ( R s\ /opt/cpanel-ccs/.develop/virtualenv/lib/python2.7/site-packages/twisted/python/threadable.pyt _sync0 s c G` s^ t d k rZ xK | D]@ } x7 | j D], } t | | j | � } t | | | � q# Wq Wn d S( s& 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. N( R R t synchronizedR R t setattr( t klassesR t methodNameR ( ( s\ /opt/cpanel-ccs/.develop/virtualenv/lib/python2.7/site-packages/twisted/python/threadable.pyt synchronize<