| summaryrefslogtreecommitdiff |
diff options
| author | nsensfel <SpamShield0@noot-noot.org> | 2019-01-10 18:48:54 +0100 |
|---|---|---|
| committer | nsensfel <SpamShield0@noot-noot.org> | 2019-01-10 18:48:54 +0100 |
| commit | 7f162e8824f3977dc5cc207dd5257ad0b39faa97 (patch) | |
| tree | b51ce99282f37cb86587b8268c3fb98a355e33c1 /src/ataxia_entry.erl | |
| parent | 2dc910eab6e0c4cc415ed85f4cb85b66c2077ac5 (diff) | |
Allows the use of locks when creating entries.
Diffstat (limited to 'src/ataxia_entry.erl')
| -rw-r--r-- | src/ataxia_entry.erl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ataxia_entry.erl b/src/ataxia_entry.erl index af0b240..6d1f223 100644 --- a/src/ataxia_entry.erl +++ b/src/ataxia_entry.erl @@ -25,7 +25,7 @@ -export ( [ - new/4, + new/5, get_id/1, get_read_permission/1, @@ -61,15 +61,16 @@ any(), ataxia_security:permission(), ataxia_security:permission(), + ataxia_lock:type(), any() ) -> type(). -new (ID, ReadPermission, WritePermission, Value) -> +new (ID, ReadPermission, WritePermission, Lock, Value) -> #entry { id = ID, read_perm = ReadPermission, write_perm = WritePermission, - lock = ataxia_lock:unlocked(), + lock = Lock, val = Value }. |


