1
0
mirror of https://github.com/deavminet/dnetd synced 2024-09-21 17:53:39 +02:00

Initialize properties lock

This commit is contained in:
Tristan B. Kildaire 2020-10-20 09:55:55 +02:00
parent 4af556a8c6
commit 3f3bf6071e

View File

@ -69,7 +69,15 @@ public class DConnection : Thread
private ConnectionType connType;
private string username;
private string currentStatus;
/**
* User property support
*
* `properties` - the property store
* `propertiesMutex` - the mutex
*/
private string[string] properties; /* TODO: New, replace old status mechanism */
private Mutex propertiesLock;
/* Write lock for socket */
/* TODO: Forgot how bmessage works, might need, might not, if multipel calls
@ -120,6 +128,9 @@ public class DConnection : Thread
/* Initialize the status message lock */
statusMessageLock = new Mutex();
/* Initialize the properties lock */
propertiesLock = new Mutex();
}
/**