diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-01-15 15:33:42 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-01-15 17:04:51 +0300 |
commit | 8c4f7ce1ea84a2d2bf5aca6b09d98af4ecb71f61 (patch) | |
tree | 384eff3e24cec5cf2b5e54544b37051c6754a21d /src/microhttpd | |
parent | b5a7f1835fba33549baf4e9945f47de36b773571 (diff) | |
download | libmicrohttpd-8c4f7ce1ea84a2d2bf5aca6b09d98af4ecb71f61.tar.gz libmicrohttpd-8c4f7ce1ea84a2d2bf5aca6b09d98af4ecb71f61.zip |
test_upgrade: use 'volatile' for variable with multithread access
Diffstat (limited to 'src/microhttpd')
-rw-r--r-- | src/microhttpd/test_upgrade.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/microhttpd/test_upgrade.c b/src/microhttpd/test_upgrade.c index 81a36004..d2e0e536 100644 --- a/src/microhttpd/test_upgrade.c +++ b/src/microhttpd/test_upgrade.c | |||
@@ -572,7 +572,7 @@ static pthread_t pt; | |||
572 | /** | 572 | /** |
573 | * Will be set to the upgraded socket. | 573 | * Will be set to the upgraded socket. |
574 | */ | 574 | */ |
575 | static struct wr_socket *usock; | 575 | static struct wr_socket *volatile usock; |
576 | 576 | ||
577 | /** | 577 | /** |
578 | * Thread we use to run the interaction with the upgraded socket. | 578 | * Thread we use to run the interaction with the upgraded socket. |