diff options
author | Guy Harris <guy@alum.mit.edu> | 2017-10-31 16:09:23 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-10-31 16:09:23 -0700 |
commit | a16ca2786d56bff6cab41dd1542a387c77bb7370 (patch) | |
tree | 49eda99ac3125bb570c7f4e1a9931d1e0968f857 /savefile.c | |
parent | 4240cc03f971c4d486bbcd58d3876e8b906ad973 (diff) |
Have a variable that keeps track of whether we have a thread or not.
pthread_t is an opaque type; it's not guaranteed to be an integer or a
pointer, so we're not guaranteed to be able to set it to 0 and have that
mean "we don't have a thread". (Heck, even if it *is* an integer,
there's no guarantee that pthread_create() will never return 0.)
Instead, have a separate variable that keeps track of whether we have a
thread.
Diffstat (limited to 'savefile.c')
0 files changed, 0 insertions, 0 deletions