ADT
arm-eh
ast-experimental
enum
forall-pointer-decay
jacob/cs343-translation
new-ast-unique-expr
pthread-emulation
qualifiedEnum
Last change
on this file since d23c0b2 was ab1b971, checked in by Thierry Delisle <tdelisle@…>, 5 years ago |
blocking_lock & multiple_acquisition_lock can now be used without libcfa-thread.
Doing so will have all functions be no-ops for these locks.
If libcfa-thread is linked in, these locks will behave as proper user-level locking.
|
-
Property mode
set to
100644
|
File size:
1.0 KB
|
Line | |
---|
1 | //
|
---|
2 | // Cforall Version 1.0.0 Copyright (C) 2021 University of Waterloo
|
---|
3 | //
|
---|
4 | // The contents of this file are covered under the licence agreement in the
|
---|
5 | // file "LICENCE" distributed with Cforall.
|
---|
6 | //
|
---|
7 | // bits/weakso_locks.hfa -- PUBLIC
|
---|
8 | // Runtime locks that are compiled out when used without linking the runtime
|
---|
9 | // thread system.
|
---|
10 | //
|
---|
11 | // Author : Thierry Delisle
|
---|
12 | // Created On : Thu Jan 21 19:59:25 2021
|
---|
13 | // Last Modified By :
|
---|
14 | // Last Modified On :
|
---|
15 | // Update Count :
|
---|
16 | //
|
---|
17 |
|
---|
18 | #include "bits/weakso_locks.hfa"
|
---|
19 |
|
---|
20 | void ?{}( blocking_lock & this, bool multi_acquisition, bool strict_owner ) {}
|
---|
21 | void ^?{}( blocking_lock & this ) {}
|
---|
22 |
|
---|
23 | void lock( blocking_lock & this ) {}
|
---|
24 | bool try_lock( blocking_lock & this ) { return false; }
|
---|
25 | void unlock( blocking_lock & this ) {}
|
---|
26 | void on_notify( blocking_lock & this, struct $thread * t ) {}
|
---|
27 | void on_wait( blocking_lock & this ) {}
|
---|
28 | size_t wait_count( blocking_lock & this ) { return 0; }
|
---|
29 | void set_recursion_count( blocking_lock & this, size_t recursion ) {}
|
---|
30 | size_t get_recursion_count( blocking_lock & this ) { return 0; }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.