mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
Giving threadsafety in client registry with semaphore
This commit is contained in:
@@ -22,8 +22,9 @@
|
||||
|
||||
#include <png.h>
|
||||
#include <uuid/uuid.h>
|
||||
#include "uuidtree.h"
|
||||
#include <semaphore.h>
|
||||
|
||||
#include "uuidtree.h"
|
||||
#include "guacio.h"
|
||||
|
||||
/**
|
||||
@@ -237,6 +238,11 @@ struct guac_client_registry {
|
||||
*/
|
||||
guac_uuid_tree_node* root;
|
||||
|
||||
/**
|
||||
* Semaphore controlling access to UUID tree.
|
||||
*/
|
||||
sem_t tree_lock;
|
||||
|
||||
};
|
||||
|
||||
guac_client_registry* guac_create_client_registry();
|
||||
|
Reference in New Issue
Block a user