def Condition(*args, **kwargs):
return _Condition(*args, **kwargs)
## empty test ## import Biskit.test as BT from threading import Thread, RLock, Condition import time class Flusher( Thread ):
src/b/i/biskit-HEAD/Biskit/PVM/ExampleSlave.py biskit(Download)
## empty test ## import Biskit.test as BT from threading import Thread, RLock, Condition import time class Flusher( Thread ):
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/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/n/g/ngstream-HEAD/trunk/src/ngstream/downloader/__init__.py ngstream(Download)
import random import socket from threading import RLock, Lock, Condition, Thread import ngstream.downloader.nzbgrab
LOCK = RLock() LOCK_NZB = Lock() CV = Condition(LOCK) START = datetime.datetime.now() NZB_QUOTA = None CFG = None
src/n/g/ngstream-HEAD/src/ngstream/downloader/__init__.py ngstream(Download)
import random import socket from threading import RLock, Lock, Condition, Thread import ngstream.downloader.nzbgrab
LOCK = RLock() LOCK_NZB = Lock() CV = Condition(LOCK) START = datetime.datetime.now() NZB_QUOTA = None CFG = None
src/d/r/dramatis-0.1.1/lib/dramatis/runtime/scheduler.py dramatis(Download)
import threading from threading import Lock from threading import Condition from threading import Thread from traceback import print_exc
def __init__(self):
super(ThreadPool.PoolThread,self).__init__( target = self.__target )
self.__mutex = Lock()
self.__wait = Condition( self.__mutex )
self.__state = "running"
def __exit(self):
def __init__(self):
self._mutex = Lock()
self._wait = Condition(self._mutex)
self._running_threads = 0
self._suspended_continuations = {}
self._queue = []
self._state = "idle"
self._main_mutex = Lock()
self._main_wait = Condition(self._main_mutex)
src/p/y/pymx-HEAD/pymx/scheduler.py pymx(Download)
from __future__ import absolute_import, with_statement from time import time from functools import partial from Queue import Queue from heapq import heappush, heappop from threading import Condition, Thread, RLock
def __init__(self):
object.__init__(self)
self._tasks = []
self._lock = RLock()
self._task_waiter = Condition(self._lock)
self._is_closing = False
self._complete_pending = None
src/s/l/slinky-HEAD/src/consume.py slinky(Download)
from redis import Redis from rfc3339 import rfc3339 from robotparser import RobotFileParser from threading import Condition, Lock, RLock, Thread from time import sleep import httplib
def __init__ (self, limit):
self.mon = RLock()
self.rc = Condition(self.mon)
self.wc = Condition(self.mon)
self.limit = limit
self.queue = deque()
src/b/i/biskit-HEAD/trunk/Biskit/PVM/TrackingJobMaster.py biskit(Download)
from Biskit.PVM.Status import Status import Biskit.tools as T from threading import Thread, RLock, _RLock, Condition, _Condition import time import copy
## end of calculation is signalled on lockMsg
self.lock = RLock()
self.lockMsg = Condition( self.lock )
## this method is called when everything is calculated
self.call_done = None
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 Next