Libraryless. Click here for Pure Java version (12871L/87K).
1 | static O withDBLock(O r) {
|
2 | lock db_mainConcepts().lock; |
3 | ret callF(r); |
4 | } |
5 | |
6 | static <A> A withDBLock(F0<A> r) {
|
7 | ret (A) withDBLock((O) r); |
8 | } |
9 | |
10 | static O withDBLock(Concepts concepts, O r) {
|
11 | lock concepts.lock; |
12 | ret callF(r); |
13 | } |
14 | |
15 | static <A> A withDBLock(Concepts concepts, F0<A> r) {
|
16 | ret (A) withDBLock(concepts, (O) r); |
17 | } |
18 | |
19 | static <A> A withDBLock(Concept concept, IF0<A> r) {
|
20 | ret (A) withDBLock(concept._concepts, r); |
21 | } |
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1006056 |
| Snippet name: | withDBLock - execute code while holding DB lock |
| Eternal ID of this version: | #1006056/6 |
| Text MD5: | 1ca90b9faf1f7e20062d0b115926603b |
| Transpilation MD5: | 211198b4a19df2112d297465db43187a |
| Author: | stefan |
| Category: | javax / concepts |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-07-14 20:43:23 |
| Source code size: | 445 bytes / 21 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 941 / 1076 |
| Version history: | 5 change(s) |
| Referenced in: | [show references] |