def _vir_event_loop_native_run(self):
# Directly run the event loop in the current thread
while True:
libvirt.virEventRunDefaultImpl()
python类virEventRunDefaultImpl()的实例源码
def run(self):
while True:
libvirt.virEventRunDefaultImpl()
def vir_event_loop_native_run():
while True:
libvirt.virEventRunDefaultImpl()
# Spawn a background thread to run the event loop
def virEventLoopNativeRun():
while True:
libvirt.virEventRunDefaultImpl()
# Spawn a background thread to run the event loop
def virEventLoopNativeRun():
while True:
libvirt.virEventRunDefaultImpl()
# Spawn a background thread to run the event loop
def vir_event_loop_native_run():
while True:
libvirt.virEventRunDefaultImpl()