1 | static void releaseDBLockOnTimeoutEval() { |
2 | callOptMC("beforeDelegatingToThread_do", f releaseDBLockOnTimeoutEval_before); |
3 | callOptMC("afterDelegatingToThread_do", f releaseDBLockOnTimeoutEval_after); |
4 | } |
5 | |
6 | static new ThreadLocal<Bool> releaseDBLockOnTimeoutEval_hadLock; |
7 | |
8 | svoid releaseDBLockOnTimeoutEval_before(Thread t) { |
9 | releaseDBLockOnTimeoutEval_hadLock.set(unlockIfHolding(dbLock())); |
10 | } |
11 | |
12 | svoid releaseDBLockOnTimeoutEval_after(Thread t) { |
13 | if (isTrue(getAndClearThreadLocal(releaseDBLockOnTimeoutEval_hadLock))) |
14 | lock(dbLock()); |
15 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1012797 |
Snippet name: | releaseDBLockOnTimeoutEval |
Eternal ID of this version: | #1012797/1 |
Text MD5: | 6b8e33c188be0dea7f2ed37f1c8efb98 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-12-13 16:43:43 |
Source code size: | 556 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 365 / 396 |
Referenced in: | [show references] |