| OLD | NEW |
| 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 18 matching lines...) Expand all Loading... |
| 29 virtual ~ThreadSnapshot() {} | 29 virtual ~ThreadSnapshot() {} |
| 30 | 30 |
| 31 //! \brief Returns a CPUContext object corresponding to the thread’s CPU | 31 //! \brief Returns a CPUContext object corresponding to the thread’s CPU |
| 32 //! context. | 32 //! context. |
| 33 //! | 33 //! |
| 34 //! The caller does not take ownership of this object, it is scoped to the | 34 //! The caller does not take ownership of this object, it is scoped to the |
| 35 //! lifetime of the ThreadSnapshot object that it was obtained from. | 35 //! lifetime of the ThreadSnapshot object that it was obtained from. |
| 36 virtual const CPUContext* Context() const = 0; | 36 virtual const CPUContext* Context() const = 0; |
| 37 | 37 |
| 38 //! \brief Returns a MemorySnapshot object corresponding to the memory region | 38 //! \brief Returns a MemorySnapshot object corresponding to the memory region |
| 39 //! that contains the thread’s stack. | 39 //! that contains the thread’s stack, or `nullptr` if no stack region is |
| 40 //! available. |
| 40 //! | 41 //! |
| 41 //! The caller does not take ownership of this object, it is scoped to the | 42 //! The caller does not take ownership of this object, it is scoped to the |
| 42 //! lifetime of the ThreadSnapshot object that it was obtained from. | 43 //! lifetime of the ThreadSnapshot object that it was obtained from. |
| 43 virtual const MemorySnapshot* Stack() const = 0; | 44 virtual const MemorySnapshot* Stack() const = 0; |
| 44 | 45 |
| 45 //! \brief Returns the thread’s identifier. | 46 //! \brief Returns the thread’s identifier. |
| 46 //! | 47 //! |
| 47 //! Thread identifiers are at least unique within a process, and may be unique | 48 //! Thread identifiers are at least unique within a process, and may be unique |
| 48 //! system-wide. | 49 //! system-wide. |
| 49 virtual uint64_t ThreadID() const = 0; | 50 virtual uint64_t ThreadID() const = 0; |
| 50 | 51 |
| 51 //! \brief Returns the thread’s suspend count. | 52 //! \brief Returns the thread’s suspend count. |
| 52 //! | 53 //! |
| 53 //! A suspend count of `0` denotes a schedulable (not suspended) thread. | 54 //! A suspend count of `0` denotes a schedulable (not suspended) thread. |
| 54 virtual int SuspendCount() const = 0; | 55 virtual int SuspendCount() const = 0; |
| 55 | 56 |
| 56 //! \brief Returns the thread’s priority. | 57 //! \brief Returns the thread’s priority. |
| 57 //! | 58 //! |
| 58 //! Threads with higher priorities will have higher priority values. | 59 //! Threads with higher priorities will have higher priority values. |
| 59 virtual int Priority() const = 0; | 60 virtual int Priority() const = 0; |
| 60 | 61 |
| 61 //! \brief Returns the base address of a region used to store thread-specific | 62 //! \brief Returns the base address of a region used to store thread-specific |
| 62 //! data. | 63 //! data. |
| 63 virtual uint64_t ThreadSpecificDataAddress() const = 0; | 64 virtual uint64_t ThreadSpecificDataAddress() const = 0; |
| 64 }; | 65 }; |
| 65 | 66 |
| 66 } // namespace crashpad | 67 } // namespace crashpad |
| 67 | 68 |
| 68 #endif // CRASHPAD_SNAPSHOT_THREAD_SNAPSHOT_H_ | 69 #endif // CRASHPAD_SNAPSHOT_THREAD_SNAPSHOT_H_ |
| OLD | NEW |