aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_lock_check.c
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2010-12-09 15:09:50 +0100
committerRickard Green <[email protected]>2010-12-14 16:58:41 +0100
commit267a5e7f6e0d578b3c9224fb87b78f76a9300c87 (patch)
tree39ca64b0dba29207e42c5572b59537028c7dab88 /erts/emulator/beam/erl_lock_check.c
parentb297bfdd47b0a39831d8cc2541aeb910f9af0bca (diff)
downloadotp-267a5e7f6e0d578b3c9224fb87b78f76a9300c87.tar.gz
otp-267a5e7f6e0d578b3c9224fb87b78f76a9300c87.tar.bz2
otp-267a5e7f6e0d578b3c9224fb87b78f76a9300c87.zip
Remove unused ethread time functionality
Diffstat (limited to 'erts/emulator/beam/erl_lock_check.c')
-rw-r--r--erts/emulator/beam/erl_lock_check.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/erts/emulator/beam/erl_lock_check.c b/erts/emulator/beam/erl_lock_check.c
index 04c7dbd2ec..7a6aaa6bbe 100644
--- a/erts/emulator/beam/erl_lock_check.c
+++ b/erts/emulator/beam/erl_lock_check.c
@@ -978,10 +978,10 @@ erts_lc_trylock_force_busy_flg(erts_lc_lock_t *lck, Uint16 op_flags)
/* We only force busy if a lock order violation would occur
and when on an even millisecond. */
{
- erts_thr_timeval_t time;
- erts_thr_time_now(&time);
+ SysTimeval tv;
+ sys_gettimeofday(&tv);
- if ((time.tv_nsec / 1000000) & 1)
+ if ((tv.tv_usec / 1000) & 1)
return 0;
}
#endif