Mercurial > hg > graal-compiler
comparison src/os/windows/vm/osThread_windows.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) 1997, 2010, 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. |
40 HANDLE thread_handle() const { return _thread_handle; } | 40 HANDLE thread_handle() const { return _thread_handle; } |
41 void set_thread_handle(HANDLE handle) { _thread_handle = handle; } | 41 void set_thread_handle(HANDLE handle) { _thread_handle = handle; } |
42 HANDLE interrupt_event() const { return _interrupt_event; } | 42 HANDLE interrupt_event() const { return _interrupt_event; } |
43 void set_interrupt_event(HANDLE interrupt_event) { _interrupt_event = interrupt_event; } | 43 void set_interrupt_event(HANDLE interrupt_event) { _interrupt_event = interrupt_event; } |
44 | 44 |
45 | |
46 static size_t thread_id_size() { return sizeof(unsigned long); } | |
45 unsigned long thread_id() const { return _thread_id; } | 47 unsigned long thread_id() const { return _thread_id; } |
46 #ifndef PRODUCT | 48 #ifndef PRODUCT |
47 // Used for debugging, return a unique integer for each thread. | 49 // Used for debugging, return a unique integer for each thread. |
48 int thread_identifier() const { return _thread_id; } | 50 int thread_identifier() const { return _thread_id; } |
49 #endif | 51 #endif |