summaryrefslogtreecommitdiff
path: root/sf-pcap-ng.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-10-31 16:09:23 -0700
committerGuy Harris <guy@alum.mit.edu>2017-10-31 16:09:23 -0700
commita16ca2786d56bff6cab41dd1542a387c77bb7370 (patch)
tree49eda99ac3125bb570c7f4e1a9931d1e0968f857 /sf-pcap-ng.h
parent4240cc03f971c4d486bbcd58d3876e8b906ad973 (diff)
downloadlibpcap-a16ca2786d56bff6cab41dd1542a387c77bb7370.tar.gz
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 'sf-pcap-ng.h')
0 files changed, 0 insertions, 0 deletions