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

Side by Side Diff: util/mach/mach_extensions.h

Issue 563383002: Add SymbolicConstantsMach and its test (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Rebase Created 6 years, 3 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
« no previous file with comments | « no previous file | util/mach/mach_extensions.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Crashpad Authors. All rights reserved. 1 // Copyright 2014 The Crashpad Authors. All rights reserved.
2 // 2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); 3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License. 4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at 5 // You may obtain a copy of the License at
6 // 6 //
7 // http://www.apache.org/licenses/LICENSE-2.0 7 // http://www.apache.org/licenses/LICENSE-2.0
8 // 8 //
9 // Unless required by applicable law or agreed to in writing, software 9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, 10 // distributed under the License is distributed on an "AS IS" BASIS,
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 //! Callers can use this function in preference to `mach_thread_self()`. This 60 //! Callers can use this function in preference to `mach_thread_self()`. This
61 //! function returns an extant reference to the current thread’s port without 61 //! function returns an extant reference to the current thread’s port without
62 //! incrementing its reference count. 62 //! incrementing its reference count.
63 //! 63 //!
64 //! \return The value of `mach_thread_self()` without incrementing its reference 64 //! \return The value of `mach_thread_self()` without incrementing its reference
65 //! count. The returned port must not be deallocated by 65 //! count. The returned port must not be deallocated by
66 //! `mach_port_deallocate()`. The returned value is valid as long as the 66 //! `mach_port_deallocate()`. The returned value is valid as long as the
67 //! thread continues to exist as a `pthread_t`. 67 //! thread continues to exist as a `pthread_t`.
68 mach_port_t MachThreadSelf(); 68 mach_port_t MachThreadSelf();
69 69
70 //! \brief The value for `EXC_MASK_ALL` appropriate for the operating system at
71 //! run time.
72 //!
73 //! The SDK’s definition of `EXC_MASK_ALL` has changed over time, with later
74 //! versions containing more bits set than earlier versions. However, older
75 //! kernels will reject exception masks that contain bits set that they don’t
76 //! recognize. Calling this function will return a value for `EXC_MASK_ALL`
77 //! appropriate for the system at run time.
78 //!
79 //! \note `EXC_MASK_ALL` does not include the value of `EXC_MASK_CRASH`.
80 exception_mask_t ExcMaskAll();
81
70 } // namespace crashpad 82 } // namespace crashpad
71 83
72 #endif // CRASHPAD_UTIL_MACH_MACH_EXTENSIONS_H_ 84 #endif // CRASHPAD_UTIL_MACH_MACH_EXTENSIONS_H_
OLDNEW
« no previous file with comments | « no previous file | util/mach/mach_extensions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698