src/share/vm/runtime/osThread.hpp

changeset 3709
0105f367a14c
parent 3156
f08d439fab8c
child 3796
960a442eae91
equal deleted inserted replaced
3708:c263e0e9f14b 3709:0105f367a14c
1 /* 1 /*
2 * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
96 void print_on(outputStream* st) const; 96 void print_on(outputStream* st) const;
97 void print() const { print_on(tty); } 97 void print() const { print_on(tty); }
98 98
99 // For java intrinsics: 99 // For java intrinsics:
100 static ByteSize interrupted_offset() { return byte_offset_of(OSThread, _interrupted); } 100 static ByteSize interrupted_offset() { return byte_offset_of(OSThread, _interrupted); }
101 static ByteSize thread_id_offset() { return byte_offset_of(OSThread, _thread_id); }
101 102
102 // Platform dependent stuff 103 // Platform dependent stuff
103 #ifdef TARGET_OS_FAMILY_linux 104 #ifdef TARGET_OS_FAMILY_linux
104 # include "osThread_linux.hpp" 105 # include "osThread_linux.hpp"
105 #endif 106 #endif

mercurial