diff options
author | Bill Buzbee <buzbee@google.com> | 2010-02-04 16:09:55 -0800 |
---|---|---|
committer | Bill Buzbee <buzbee@google.com> | 2010-02-05 14:58:30 -0800 |
commit | eb695c6f814f6b0bdbba0e837555d3fe5ad23104 (patch) | |
tree | 7ca10977661e3226b0c403aba4fc1d26bd06599f /vm/Sync.h | |
parent | cb1aa7c966a9aeb4c4161609310d5edda53b8356 (diff) | |
download | android_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.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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. |