Mercurial > hg > truffle
comparison src/os/linux/vm/osThread_linux.hpp @ 6006:0105f367a14c
7160570: Intrinsification support for tracing framework
Reviewed-by: sla, never
author | rbackman |
---|---|
date | Tue, 06 Mar 2012 12:36:59 +0100 |
parents | f95d63e2154a |
children | 960a442eae91 |
comparison
equal
deleted
inserted
replaced
6005:c263e0e9f14b | 6006:0105f367a14c |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 1999, 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. |
53 public: | 53 public: |
54 | 54 |
55 // Methods to save/restore caller's signal mask | 55 // Methods to save/restore caller's signal mask |
56 sigset_t caller_sigmask() const { return _caller_sigmask; } | 56 sigset_t caller_sigmask() const { return _caller_sigmask; } |
57 void set_caller_sigmask(sigset_t sigmask) { _caller_sigmask = sigmask; } | 57 void set_caller_sigmask(sigset_t sigmask) { _caller_sigmask = sigmask; } |
58 | |
59 static size_t thread_id_size() { return sizeof(pid_t); } | |
58 | 60 |
59 pid_t thread_id() const { | 61 pid_t thread_id() const { |
60 return _thread_id; | 62 return _thread_id; |
61 } | 63 } |
62 #ifndef PRODUCT | 64 #ifndef PRODUCT |