コード例 #1
0
ファイル: __init__.py プロジェクト: Matt-Esch/anaconda
 def sync_operation(self, op):
     '''Wait for an operation to be done or cancelled, then release it.
     Uses a busy-loop -- make sure a callback is registered to 
     signal this listener.''' 
     while pa.pa_operation_get_state(op) == pa.PA_OPERATION_RUNNING:
         pa.pa_threaded_mainloop_wait(self.threaded_mainloop)
     pa.pa_operation_unref(op)
コード例 #2
0
 def sync_operation(self, op):
     '''Wait for an operation to be done or cancelled, then release it.
     Uses a busy-loop -- make sure a callback is registered to 
     signal this listener.'''
     while pa.pa_operation_get_state(op) == pa.PA_OPERATION_RUNNING:
         pa.pa_threaded_mainloop_wait(self.threaded_mainloop)
     pa.pa_operation_unref(op)
コード例 #3
0
ファイル: __init__.py プロジェクト: Matt-Esch/anaconda
 def wait(self):
     '''Wait for a signal.'''
     pa.pa_threaded_mainloop_wait(self.threaded_mainloop)
コード例 #4
0
 def wait(self):
     '''Wait for a signal.'''
     pa.pa_threaded_mainloop_wait(self.threaded_mainloop)
コード例 #5
0
ファイル: pulse.py プロジェクト: bitcraft/pyglet
 def wait(self):
     """Wait for a signal."""
     pa.pa_threaded_mainloop_wait(self.threaded_mainloop)
コード例 #6
0
 def wait(self):
     """Wait for a signal."""
     pa.pa_threaded_mainloop_wait(self.threaded_mainloop)