diff options
author | Test_User <hax@andrewyu.org> | 2023-05-06 18:13:30 -0400 |
---|---|---|
committer | Test_User <hax@andrewyu.org> | 2023-05-06 18:13:30 -0400 |
commit | d11d6c901e8dcbc1e008d3856260255056adb0cd (patch) | |
tree | 6f8819eb93ba2c639fc016c1b5809e31d7322717 /network.h | |
parent | b98cc288211baa7d98a7e1ccac538f32129a061f (diff) | |
download | coupserv-d11d6c901e8dcbc1e008d3856260255056adb0cd.tar.gz coupserv-d11d6c901e8dcbc1e008d3856260255056adb0cd.zip |
Add locks so it's actually thread-safe, will probably make more efficient use of them later
Diffstat (limited to '')
-rw-r--r-- | network.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -29,6 +29,7 @@ #pragma once #include <netinet/in.h> +#include <pthread.h> #include "types.h" #include "table.h" @@ -64,6 +65,8 @@ extern struct table client_network_commands; extern struct table server_list; extern struct table user_list; +extern pthread_mutex_t send_lock; + extern int client_fd; extern int client_listen_fd; extern struct string client_nick; |