summaryrefslogtreecommitdiff
path: root/network.h
diff options
context:
space:
mode:
authorTest_User <hax@andrewyu.org>2023-05-06 18:13:30 -0400
committerTest_User <hax@andrewyu.org>2023-05-06 18:13:30 -0400
commitd11d6c901e8dcbc1e008d3856260255056adb0cd (patch)
tree6f8819eb93ba2c639fc016c1b5809e31d7322717 /network.h
parentb98cc288211baa7d98a7e1ccac538f32129a061f (diff)
downloadcoupserv-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 'network.h')
-rw-r--r--network.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/network.h b/network.h
index ced1d4d..7c70df7 100644
--- a/network.h
+++ b/network.h
@@ -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;