Subversion Repositories HelenOS-historic

Rev

Rev 68 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 68 Rev 153
Line 1... Line 1...
1
/*
1
/*
2
 * Reader/Writer locks
-
 
3
 */
-
 
4
 
-
 
5
/*
-
 
6
 * Copyright (C) 2001-2004 Jakub Jermar
2
 * Copyright (C) 2001-2004 Jakub Jermar
7
 * All rights reserved.
3
 * All rights reserved.
8
 *
4
 *
9
 * Redistribution and use in source and binary forms, with or without
5
 * Redistribution and use in source and binary forms, with or without
10
 * modification, are permitted provided that the following conditions
6
 * modification, are permitted provided that the following conditions
Line 28... Line 24...
28
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
30
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
 */
27
 */
32
 
28
 
-
 
29
 
-
 
30
/*
-
 
31
 * Reader/Writer locks
-
 
32
 */
-
 
33
 
33
/*
34
/*
34
 * These locks are not recursive.
35
 * These locks are not recursive.
35
 * Neither readers nor writers will suffer starvation.
36
 * Neither readers nor writers will suffer starvation.
36
 *
37
 *
37
 * If there is a writer followed by a reader waiting for the rwlock
38
 * If there is a writer followed by a reader waiting for the rwlock