Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

9
LINES

< > TinyBrain | #1007380 - lock - acquire Lock with message

JavaX fragment (include)

static void lock(Lock lock, S msg) {
  print("Locking: " + msg);
  lock.lock();
}

static void lock(Lock lock, S msg, long timeout) {
  print("Locking: " + msg);
  lockOrFail(lock, timeout);
}

download  show line numbers  debug dex   

Travelled to 1 computer(s): tvejysmllsmz

No comments. add comment

Snippet ID: #1007380
Snippet name: lock - acquire Lock with message
Eternal ID of this version: #1007380/2
Text MD5: efd495655d7eaa82cc607fb6a5d8f26d
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-03-18 17:42:41
Source code size: 200 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 17 / 3
Version history: 1 change(s)
Referenced in: [show]