libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 1ad74ebc4637f800ff14f901ceca27795a93cce4
parent 091bf71cb51098586475d44b97bf5e37c4a8824f
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Thu,  8 Oct 2020 22:46:11 +0300

internal.h: added 'volatile' for some members with multi-thread access

Diffstat:
Msrc/microhttpd/internal.h | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/microhttpd/internal.h b/src/microhttpd/internal.h @@ -1053,7 +1053,7 @@ struct MHD_Connection /** * Is the connection wanting to resume? */ - bool resuming; + volatile bool resuming; }; @@ -1248,7 +1248,7 @@ struct MHD_UpgradeResponseHandle * @remark This flag could be changed from thread that process * connection's recv(), send() and response. */ - bool clean_ready; + volatile bool clean_ready; }; #endif /* UPGRADE_SUPPORT */ @@ -1598,7 +1598,7 @@ struct MHD_Daemon /* * Do we need to process resuming connections? */ - bool resuming; + volatile bool resuming; /** * 'True' if some data is already waiting to be processed.