mirror of
https://github.com/deavminet/dnetd
synced 2024-09-21 17:53:39 +02:00
Initialize properties lock
This commit is contained in:
parent
4af556a8c6
commit
3f3bf6071e
@ -69,7 +69,15 @@ public class DConnection : Thread
|
|||||||
private ConnectionType connType;
|
private ConnectionType connType;
|
||||||
private string username;
|
private string username;
|
||||||
private string currentStatus;
|
private string currentStatus;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* User property support
|
||||||
|
*
|
||||||
|
* `properties` - the property store
|
||||||
|
* `propertiesMutex` - the mutex
|
||||||
|
*/
|
||||||
private string[string] properties; /* TODO: New, replace old status mechanism */
|
private string[string] properties; /* TODO: New, replace old status mechanism */
|
||||||
|
private Mutex propertiesLock;
|
||||||
|
|
||||||
/* Write lock for socket */
|
/* Write lock for socket */
|
||||||
/* TODO: Forgot how bmessage works, might need, might not, if multipel calls
|
/* 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 */
|
/* Initialize the status message lock */
|
||||||
statusMessageLock = new Mutex();
|
statusMessageLock = new Mutex();
|
||||||
|
|
||||||
|
/* Initialize the properties lock */
|
||||||
|
propertiesLock = new Mutex();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user