aboutsummaryrefslogtreecommitdiff
path: root/src/beaker_globals.c
diff options
context:
space:
mode:
authorfrosty <gabriel@bwaaa.monster>2026-03-05 06:48:37 +0000
committerfrosty <gabriel@bwaaa.monster>2026-03-05 06:48:37 +0000
commit0a5a3114eccf9b6c2af805f19fda2835ce247abb (patch)
treed2cd06ec6aed8a506fb33d21fce3249888d74845 /src/beaker_globals.c
parentcd0335d0c468cf55e53b5b3c1fae33d45c7de752 (diff)
downloadbeaker-0a5a3114eccf9b6c2af805f19fda2835ce247abb.tar.gz
multithreading, minor fixes
Diffstat (limited to 'src/beaker_globals.c')
-rw-r--r--src/beaker_globals.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/beaker_globals.c b/src/beaker_globals.c
index 2ea5ab6..29c301e 100644
--- a/src/beaker_globals.c
+++ b/src/beaker_globals.c
@@ -4,10 +4,10 @@ RouteHandler handlers[MAX_HANDLERS];
int handler_count = 0;
-int current_client_socket = -1;
+__thread int current_client_socket = -1;
-Cookie cookies_to_set[MAX_COOKIES];
+__thread Cookie cookies_to_set[MAX_COOKIES];
-int cookies_to_set_count = 0;
+__thread int cookies_to_set_count = 0;
-char current_request_buffer[BUFFER_SIZE]; \ No newline at end of file
+__thread char current_request_buffer[BUFFER_SIZE]; \ No newline at end of file