Skip to content

Commit 648a20e

Browse files
committed
Consolidate vars
1 parent 6d77f4d commit 648a20e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

system/lib/pthread/library_pthread.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,7 @@ int pthread_mutexattr_setprioceiling(pthread_mutexattr_t *attr, int prioceiling)
8484
static uint32_t dummyZeroAddress = 0;
8585

8686
void emscripten_thread_sleep(double msecs) {
87-
double now = emscripten_get_now();
88-
double target = now + msecs;
87+
double target = emscripten_get_now() + msecs;
8988

9089
// If we have less than this many msecs left to wait, busy spin that instead.
9190
double min_ms_slice_to_sleep = 0.1;

0 commit comments

Comments
 (0)