Added mutex to `deleteProperty`

This commit is contained in:
Tristan B. Kildaire 2020-10-20 10:01:38 +02:00
parent 1694634e3c
commit 3be0a028c6
1 changed files with 7 additions and 1 deletions

View File

@ -989,8 +989,14 @@ public class DConnection : Thread
*/
public void deleteProperty(string propertyName)
{
/* TODO: Implement me */
/* Lock the properties store */
propertiesLock.lock();
/* Remove the property */
properties.remove(propertyName);
/* Unlock the properties store */
propertiesLock.unlock();
}
public ConnectionType getConnectionType()