Handle MacOS's libc

develop
knotteye 2021-04-15 16:28:04 -05:00
parent 04f88d8294
commit 5e61108795
1 changed files with 2 additions and 0 deletions

View File

@ -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