summaryrefslogtreecommitdiffstats
path: root/vm/Sync.h
diff options
context:
space:
mode:
authorBill Buzbee <buzbee@google.com>2010-02-04 16:09:55 -0800
committerBill Buzbee <buzbee@google.com>2010-02-05 14:58:30 -0800
commiteb695c6f814f6b0bdbba0e837555d3fe5ad23104 (patch)
tree7ca10977661e3226b0c403aba4fc1d26bd06599f /vm/Sync.h
parentcb1aa7c966a9aeb4c4161609310d5edda53b8356 (diff)
downloadandroid_dalvik-eb695c6f814f6b0bdbba0e837555d3fe5ad23104.tar.gz
android_dalvik-eb695c6f814f6b0bdbba0e837555d3fe5ad23104.tar.bz2
android_dalvik-eb695c6f814f6b0bdbba0e837555d3fe5ad23104.zip
Jit: Start the Jit when framework signals on first screen draw
Cleanup of delayed start - introduce dvmRelativeCondWait in Sync.c. Additionally, support for deadman timer to start Jit when no screen draws happen, and to start immediately when running stand-alone. Fixed bug in assert variant of libdvm - recent MONITOR change had neglected to add a new type of exit to the exit stats.
Diffstat (limited to 'vm/Sync.h')
-rw-r--r--vm/Sync.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/vm/Sync.h b/vm/Sync.h
index 083260874..b273538da 100644
--- a/vm/Sync.h
+++ b/vm/Sync.h
@@ -146,9 +146,10 @@ struct Object* dvmGetMonitorObject(Monitor* mon);
bool dvmHoldsLock(struct Thread* thread, struct Object* obj);
/*
- * Converts the given relative time into an absolute time
+ * Relative timed wait on condition
*/
-void dvmAbsoluteTime(s8 msec, s4 nsec, struct timespec *ts);
+int dvmRelativeCondWait(pthread_cond_t* cond, pthread_mutex_t* mutex,
+ s8 msec, s4 nsec);
/*
* Debug.