コード例 #1
0
 def make_keyfs():
     keyfs = KeyFS(tmpdir, storage)
     key1 = keyfs.add_key("NAME1", "hello", int)
     keyfs.notifier.on_key_change(key1, queue.put)
     pool = ThreadPool()
     pool.register(keyfs.notifier)
     pool.start()
     try:
         yield key1
     finally:
         pool.shutdown()
コード例 #2
0
ファイル: test_keyfs.py プロジェクト: uceo/uceo-2015
 def make_keyfs():
     keyfs = KeyFS(tmpdir)
     key1 = keyfs.add_key("NAME1", "hello", int)
     keyfs.notifier.on_key_change(key1, queue.put)
     pool = ThreadPool()
     pool.register(keyfs.notifier)
     pool.start()
     try:
         yield key1
     finally:
         pool.shutdown()
コード例 #3
0
ファイル: conftest.py プロジェクト: yunstanford/devpi
def pool():
    from devpi_server.mythread import ThreadPool
    pool = ThreadPool()
    yield pool
    pool.shutdown()
コード例 #4
0
def pool():
    pool = ThreadPool()
    yield pool
    pool.shutdown()
コード例 #5
0
ファイル: conftest.py プロジェクト: uceo/uceo-2015
def pool():
    from devpi_server.mythread  import ThreadPool
    pool = ThreadPool()
    yield pool
    pool.shutdown()