1 /*---------------------------------------------------------------------------* 2 Project: Horizon 3 File: os_AutoStackManager.h 4 5 Copyright (C)2009-2012 Nintendo Co., Ltd. All rights reserved. 6 7 These coded instructions, statements, and computer programs contain 8 proprietary information of Nintendo of America Inc. and/or Nintendo 9 Company Ltd., and are protected by Federal copyright law. They may 10 not be disclosed to third parties or copied or duplicated in any form, 11 in whole or in part, without the prior written consent of Nintendo. 12 13 $Rev:$ 14 *---------------------------------------------------------------------------*/ 15 16 #ifndef NN_OS_OS_AUTOSTACKMANAGER_H_ 17 #define NN_OS_OS_AUTOSTACKMANAGER_H_ 18 19 #ifdef __cplusplus 20 21 #include <nn/os/os_Mutex.h> 22 23 namespace nn { namespace os { 24 25 26 /* Please see man pages for details 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 */ 43 class AutoStackManager 44 { 45 public: 46 /* Please see man pages for details 47 48 */ ~AutoStackManager()49 virtual ~AutoStackManager() {} 50 51 52 53 /* Please see man pages for details 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 */ 76 virtual void* Construct(size_t stackSize) = 0; 77 78 79 80 /* Please see man pages for details 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 */ 119 virtual void Destruct(void* pStackBottom, bool isError) = 0; 120 }; 121 122 123 124 }} // namespace nn::os 125 126 #endif // __cplusplus 127 128 #endif /* NN_OS_OS_AUTOSTACKMANAGER_H_ */ 129