Fix invokables to make sure script pointers are setup before invoking function calls. Reduce app startup time up to 1s.
diff --git a/libs/rs/rsLocklessFifo.cpp b/libs/rs/rsLocklessFifo.cpp
index 0c403895..f4f5d40 100644
--- a/libs/rs/rsLocklessFifo.cpp
+++ b/libs/rs/rsLocklessFifo.cpp
@@ -159,7 +159,7 @@
if ((mPut+bytes) > mEnd) {
// Need to loop regardless of where get is.
while((mGet > mPut) && (mBuffer+4 >= mGet)) {
- sleep(1);
+ usleep(100);
}
// Toss in a reset then the normal wait for space will do the rest.
@@ -170,7 +170,7 @@
// it will fit here so we just need to wait for space.
while(getFreeSpace() < bytes) {
- sleep(1);
+ usleep(100);
}
}