1 |
/* Locks. |
/* Locks (sleep, pri lending, recursive). |
2 |
Copyright 1999, 2000, 2001 Johan Rydberg, jrydberg@opencores.org. |
Copyright 1999, 2000, 2001, 2002 Johan Rydberg, jrydberg@rtmk.org. |
3 |
|
|
4 |
This program is free software; you can redistribute it and/or modify |
This program is free software; you can redistribute it and/or modify |
5 |
it under the terms of the GNU General Public License as published by |
it under the terms of the GNU General Public License as published by |
71 |
|
|
72 |
extern void thread_lock_write_to_read (struct thread_lock *lock); |
extern void thread_lock_write_to_read (struct thread_lock *lock); |
73 |
|
|
74 |
|
/* Allow a thread that has a lock for write to acquire it |
75 |
|
recursively (for read, write, or update). */ |
76 |
|
|
77 |
|
extern void thread_lock_recursive_set (struct thread_lock *lock); |
78 |
|
|
79 |
|
/* Prevent a lock from being re-acquired. */ |
80 |
|
|
81 |
|
extern void thread_lock_recursive_clear (struct thread_lock *lock); |
82 |
|
|
83 |
#endif /* thread-lock.h */ |
#endif /* thread-lock.h */ |