1 |
1 |
2 /* |
2 /* |
3 * Copyright (c) 1998, 2008, Oracle and/or its affiliates. All rights reserved. |
3 * Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved. |
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
5 * |
5 * |
6 * This code is free software; you can redistribute it and/or modify it |
6 * This code is free software; you can redistribute it and/or modify it |
7 * under the terms of the GNU General Public License version 2 only, as |
7 * under the terms of the GNU General Public License version 2 only, as |
8 * published by the Free Software Foundation. |
8 * published by the Free Software Foundation. |
21 * or visit www.oracle.com if you need additional information or have any |
21 * or visit www.oracle.com if you need additional information or have any |
22 * questions. |
22 * questions. |
23 * |
23 * |
24 */ |
24 */ |
25 |
25 |
26 # include "incls/_precompiled.incl" |
26 #include "precompiled.hpp" |
27 # include "incls/_mutex.cpp.incl" |
27 #include "runtime/mutex.hpp" |
|
28 #include "runtime/osThread.hpp" |
|
29 #include "utilities/events.hpp" |
|
30 #ifdef TARGET_OS_FAMILY_linux |
|
31 # include "mutex_linux.inline.hpp" |
|
32 # include "thread_linux.inline.hpp" |
|
33 #endif |
|
34 #ifdef TARGET_OS_FAMILY_solaris |
|
35 # include "mutex_solaris.inline.hpp" |
|
36 # include "thread_solaris.inline.hpp" |
|
37 #endif |
|
38 #ifdef TARGET_OS_FAMILY_windows |
|
39 # include "mutex_windows.inline.hpp" |
|
40 # include "thread_windows.inline.hpp" |
|
41 #endif |
28 |
42 |
29 // o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o |
43 // o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o |
30 // |
44 // |
31 // Native Monitor-Mutex locking - theory of operations |
45 // Native Monitor-Mutex locking - theory of operations |
32 // |
46 // |