summaryrefslogtreecommitdiff
path: root/examples/server/utils.hpp
diff options
context:
space:
mode:
authorPierrick Hymbert <pierrick.hymbert@gmail.com>2024-02-21 15:47:48 +0100
committerGitHub <noreply@github.com>2024-02-21 15:47:48 +0100
commit1ecea255ebb70750b52688393f37a63606b90e3f (patch)
treedcd38aa52b1876ba38c33c4531be2c694d5e5428 /examples/server/utils.hpp
parenta00a35cef93e057eace8351a667d14d152a91ebc (diff)
server: health: fix race condition on slots data using tasks queue (#5634)
* server: health: fix race condition on slots data using tasks queue * server: health: * include_slots only if slots_endpoint * fix compile warning task.target_id not initialized.
Diffstat (limited to 'examples/server/utils.hpp')
-rw-r--r--examples/server/utils.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/server/utils.hpp b/examples/server/utils.hpp
index e954fb0e..88545eb6 100644
--- a/examples/server/utils.hpp
+++ b/examples/server/utils.hpp
@@ -49,7 +49,8 @@ enum server_state {
enum task_type {
TASK_TYPE_COMPLETION,
TASK_TYPE_CANCEL,
- TASK_TYPE_NEXT_RESPONSE
+ TASK_TYPE_NEXT_RESPONSE,
+ TASK_TYPE_SLOTS_DATA
};
struct task_server {