-
Notifications
You must be signed in to change notification settings - Fork 42
/
coupling.h
30 lines (28 loc) · 1.16 KB
/
coupling.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
* File: coupling.h
* Author: Vincent Gramoli <[email protected]>,
* Vasileios Trigonakis <[email protected]>
* Description: hand-over-hand locking list
* (Details: Maurice Herlihy and Nir Shavit. The Art of
* Multiprocessor Programming, Revised First Edition. 2012.)
* coupling.h is part of ASCYLIB
*
* Copyright (c) 2014 Vasileios Trigonakis <[email protected]>,
* Tudor David <[email protected]>
* Distributed Programming Lab (LPD), EPFL
*
* ASCYLIB is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation, version 2
* of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*/
#include "linkedlist-lock.h"
sval_t lockc_delete(intset_l_t* set, skey_t key);
sval_t lockc_find(intset_l_t* set, skey_t key);
int lockc_insert(intset_l_t* set, skey_t key, sval_t val);