Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(905)

Side by Side Diff: src/trusted/service_runtime/osx/mach_thread_map.h

Issue 12207165: Mac x86_64: Mach exception support (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 /*
2 * Copyright (c) 2013 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file.
5 */
6
7 #ifndef NATIVE_CLIENT_SERVICE_RUNTIME_OSX_MACH_THREAD_MAP_H_
8 #define NATIVE_CLIENT_SERVICE_RUNTIME_OSX_MACH_THREAD_MAP_H_ 1
9
10 #include <mach/mach.h>
11
12 #include "native_client/src/include/nacl_base.h"
13 #include "native_client/src/include/nacl_compiler_annotations.h"
14
15 EXTERN_C_BEGIN
16
17 #if NACL_ARCH(NACL_BUILD_ARCH) != NACL_x86 || NACL_BUILD_SUBARCH != 32
18
19 void NaClInitMachThreadMap(void);
20
21 size_t GetNaClThreadIndexForMachThread(mach_port_t mach_thread);
Mark Seaborn 2013/02/14 00:37:54 These should have "NaCl" prefixes, e.g. NaClGetThr
22 void SetCurrentMachThreadForNaClThreadIndex(size_t nacl_thread_index);
23 void ClearMachThreadForNaClThreadIndex(size_t nacl_thread_index);
24
25 #else
26
27 static INLINE void NaClInitMachThreadMap(void) {}
28
29 static INLINE size_t GetNaClThreadIndexForMachThread(mach_port_t mach_thread) {
30 UNREFERENCED_PARAMETER(mach_thread);
31 return 0;
32 }
33
34 static INLINE void SetCurrentMachThreadForNaClThreadIndex(
35 size_t nacl_thread_index) {
36 UNREFERENCED_PARAMETER(nacl_thread_index);
37 }
38
39 static INLINE void ClearMachThreadForNaClThreadIndex(size_t nacl_thread_index) {
40 UNREFERENCED_PARAMETER(nacl_thread_index);
41 }
42
43 #endif
44
45 EXTERN_C_END
46
47 #endif /* NATIVE_CLIENT_SERVICE_RUNTIME_OSX_MACH_THREAD_MAP_H_ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698