|
|
@ -29,6 +29,8 @@ if libc_path == 'libc.so.6': |
|
|
|
sleep = posixsleep |
|
|
|
sleep = posixsleep |
|
|
|
elif libc_path == 'kernel32': |
|
|
|
elif libc_path == 'kernel32': |
|
|
|
sleep = ntsleep |
|
|
|
sleep = ntsleep |
|
|
|
|
|
|
|
elif libc_path == "libSystem.dylib": |
|
|
|
|
|
|
|
sleep = posixsleep |
|
|
|
else: |
|
|
|
else: |
|
|
|
print("Couldn't figure out how to use native sleep calls with "+str(libc_path)+", event loop performance may suffer.") |
|
|
|
print("Couldn't figure out how to use native sleep calls with "+str(libc_path)+", event loop performance may suffer.") |
|
|
|
sleep = time.sleep |
|
|
|
sleep = time.sleep |