Abstract from update trigger mechanism:
(update_trigger): New. (force, zdon): Use it. (update_sem, update_force): Internal linkage. (update_trigger, update_force): Passing a pointer to static storage as thread argument is racy. Use dynamic allocation.
This commit is contained in:
parent
553662f305
commit
861112f827
4 changed files with 38 additions and 10 deletions
|
@ -38,7 +38,6 @@
|
|||
|
||||
extern int shutdown_pending;
|
||||
extern int update_pending;
|
||||
extern empth_sem_t *update_sem;
|
||||
extern empth_rwlock_t *update_lock;
|
||||
extern time_t update_time;
|
||||
extern int updating_mob;
|
||||
|
@ -52,7 +51,7 @@ void mobility_check(void *);
|
|||
void player_kill_idle(void *);
|
||||
void update_main(void);
|
||||
void update_init(void);
|
||||
int update_trigger(time_t);
|
||||
void shutdown_sequence(void *);
|
||||
void update_force(void *);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue