• Facebook
  • Twitter
  • Reddit
  • StumbleUpon
  • Digg
  • email


        def Condition(*args, **kwargs):
    return _Condition(*args, **kwargs)
        


src/d/i/dionea-HEAD/dionea/trunk/sample/python/testP-C.py   dionea(Download)
    def __init__(self,limits):
        self.buffer=[]
        self.limits=limits
        self.cv=threading.Condition(threading.RLock())
 
 
    def put(self,tname,cake):

src/d/i/dionea-HEAD/dionea/trunk/sample/python/testRWLock.py   dionea(Download)
    def __init__(self):
        self._read_ready = threading.Condition(threading.RLock())
        self._readers = 0
 
    def acquire_read(self):
        self._read_ready.acquire()
        try:

src/d/i/dionea-HEAD/dionea/trunk/sample/python/testM-T.py   dionea(Download)
    def __init__(self,i):
        self.initialCount=i
        self.currentCount=i
        self.nCompleted=0
        self.cv=threading.Condition(threading.Lock())
 
    def barrierWait(self):

src/p/r/processing-0.52/examples/benchmarks.py   processing(Download)
 
    print '\n\t######## testing Queue.Queue\n'
    test_queuespeed(threading.Thread, Queue.Queue(),
                    threading.Condition())
    print '\n\t######## testing processing.Queue\n'
    test_queuespeed(processing.Process, processing.Queue(),
                    processing.Condition())
    print
 
    print '\n\t######## testing threading.Condition\n'
    test_conditionspeed(threading.Thread, threading.Condition())
    print '\n\t######## testing processing.Condition\n'
    test_conditionspeed(processing.Process, processing.Condition())
    print '\n\t######## testing condition managed by a server process\n'

src/t/r/track-HEAD/scaleHarness/trunk/external/grinder-3.0-beta33/examples/sync.py   track(Download)
from net.grinder.script.Grinder import grinder
 
# You need to install Jython to access the threading package. See
# http://grinder.sourceforge.net/faq.html#jython-libraries
from threading import Condition
 
 
# Global lock
c = Condition()

src/m/a/matplotlib-HEAD/matplotlib/examples/user_interfaces/interactive.py   matplotlib(Download)
    def __init__(self,on_kill=None,*args,**kw):
        code.InteractiveConsole.__init__(self,*args,**kw)
        self.code_to_run = None
        self.ready = threading.Condition()
        self._kill = False
        if on_kill is None:
            on_kill = []

src/m/a/matplotlib-HEAD/examples/user_interfaces/interactive.py   matplotlib(Download)
    def __init__(self,on_kill=None,*args,**kw):
        code.InteractiveConsole.__init__(self,*args,**kw)
        self.code_to_run = None
        self.ready = threading.Condition()
        self._kill = False
        if on_kill is None:
            on_kill = []

src/m/a/Matplotlib--JJ-s-dev-HEAD/examples/user_interfaces/interactive.py   Matplotlib--JJ-s-dev(Download)
    def __init__(self,on_kill=None,*args,**kw):
        code.InteractiveConsole.__init__(self,*args,**kw)
        self.code_to_run = None
        self.ready = threading.Condition()
        self._kill = False
        if on_kill is None:
            on_kill = []

src/t/r/track-HEAD/scaleHarness/trunk/external/grinder-3.0-beta33/examples/jmsreceiver.py   track(Download)
from javax.naming import Context, InitialContext
from net.grinder.script.Grinder import grinder
from net.grinder.script import Test
from threading import Condition
from weblogic.jndi import WLInitialContextFactory
 
# Look up connection factory and queue in JNDI.
    def __init__(self):
        self.messageQueue = []          # Queue of received messages not yet recorded.
        self.cv = Condition()           # Used to synchronise thread activity.
 
    def __call__(self):
        log = grinder.logger.output
 

src/d/j/django-navbar-0.3.0/examples/dbgp/server.py   django-navbar(Download)
    def __init__(self, sessionHost):
        dbgp.serverBase.session.__init__(self, sessionHost)
 
        # setup some event vars
        self._resp_cv = threading.Condition()
        self._responses = {}
        self.statusName = 'stopped'

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next