Added mutex/lock to Session type

This commit is contained in:
Tristan B. Velloza Kildaire 2022-01-03 20:47:06 +02:00
parent f14211890d
commit 4556473696
1 changed files with 4 additions and 0 deletions

View File

@ -1,4 +1,5 @@
#include<stdint.h>
#include<pthread.h>
struct Adapter
{
@ -65,6 +66,9 @@ struct Session
/* Hooks */
HookSet hooks;
/* Lock */
pthread_mutex_t lock;
/* Next Session instance */
struct Session* next;
};