mirror of
https://github.com/deavmi/doap
synced 2024-07-02 13:07:19 +02:00
CoapClient
- Added rolling counter and a lock for it - Count starts at 0
This commit is contained in:
parent
1136e384f8
commit
4c788b91c3
|
@ -45,6 +45,12 @@ public class CoapClient
|
|||
*/
|
||||
private Condition watcherSignal;
|
||||
|
||||
/**
|
||||
* Rolling Message ID
|
||||
*/
|
||||
private ulong rollingMid;
|
||||
private Mutex rollingLock;
|
||||
|
||||
/**
|
||||
* Creates a new CoAP client to the
|
||||
* provided endpoint address
|
||||
|
@ -62,6 +68,9 @@ public class CoapClient
|
|||
this.requestsLock = new Mutex();
|
||||
this.watcherSignal = new Condition(this.requestsLock);
|
||||
|
||||
this.rollingMid = 0;
|
||||
this.rollingLock = new Mutex();
|
||||
|
||||
init();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user