/[rtmk]/rtmk/thread-lock.h
ViewVC logotype

Diff of /rtmk/thread-lock.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by jrydberg, Thu Jan 3 01:32:43 2002 UTC revision 1.3 by jrydberg, Wed Feb 20 20:04:42 2002 UTC
# Line 1  Line 1 
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
# Line 71  extern bool thread_lock_read_to_write (s Line 71  extern bool thread_lock_read_to_write (s
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 */

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26