mirror of
https://github.com/simh/simh.git
synced 2026-04-15 16:11:13 +00:00
TIMER: Fix overflow error in sim_idle_ms_sleep() timespec tv_nsec field
Backed out commit 484889ea5a since the overflow of the timespec tv_nsec
field was the real cause of the problem. No need for an extra mutex.
As reported in #595
This commit is contained in:
@@ -1063,7 +1063,6 @@ struct MEMFILE {
|
||||
|
||||
extern pthread_mutex_t sim_asynch_lock;
|
||||
extern pthread_cond_t sim_asynch_wake;
|
||||
extern pthread_mutex_t sim_idle_lock;
|
||||
extern pthread_mutex_t sim_timer_lock;
|
||||
extern pthread_cond_t sim_timer_wake;
|
||||
extern t_bool sim_timer_event_canceled;
|
||||
@@ -1176,7 +1175,6 @@ extern int32 sim_asynch_inst_latency;
|
||||
do { \
|
||||
pthread_mutex_destroy(&sim_asynch_lock); \
|
||||
pthread_cond_destroy(&sim_asynch_wake); \
|
||||
pthread_mutex_destroy(&sim_idle_lock); \
|
||||
pthread_mutex_destroy(&sim_timer_lock); \
|
||||
pthread_cond_destroy(&sim_timer_wake); \
|
||||
pthread_mutex_destroy(&sim_tmxr_poll_lock); \
|
||||
@@ -1226,7 +1224,6 @@ extern int32 sim_asynch_inst_latency;
|
||||
do { \
|
||||
pthread_mutex_destroy(&sim_asynch_lock); \
|
||||
pthread_cond_destroy(&sim_asynch_wake); \
|
||||
pthread_mutex_destroy(&sim_idle_lock); \
|
||||
pthread_mutex_destroy(&sim_timer_lock); \
|
||||
pthread_cond_destroy(&sim_timer_wake); \
|
||||
pthread_mutex_destroy(&sim_tmxr_poll_lock); \
|
||||
|
||||
Reference in New Issue
Block a user