예제 #1
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)
예제 #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
 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)