summaryrefslogtreecommitdiffhomepage
path: root/Kernel/KernelKit/ThreadLocalStorage.inl
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/KernelKit/ThreadLocalStorage.inl')
-rw-r--r--Kernel/KernelKit/ThreadLocalStorage.inl12
1 files changed, 7 insertions, 5 deletions
diff --git a/Kernel/KernelKit/ThreadLocalStorage.inl b/Kernel/KernelKit/ThreadLocalStorage.inl
index 6dbff3a1..c6e61059 100644
--- a/Kernel/KernelKit/ThreadLocalStorage.inl
+++ b/Kernel/KernelKit/ThreadLocalStorage.inl
@@ -6,14 +6,14 @@
//! @brief Allocates a pointer from the process's tls.
-#ifndef __PROCESS_MANAGER__
+#ifndef _INC_PROCESS_SCHEDULER_HXX_
#include <KernelKit/ProcessScheduler.hxx>
#endif
template <typename T>
inline T* tls_new_ptr(void)
{
- using namespace NewOS;
+ using namespace Kernel;
MUST_PASS(ProcessScheduler::The().Leak().TheCurrent());
@@ -30,7 +30,7 @@ inline bool tls_delete_ptr(T* ptr)
if (!ptr)
return false;
- using namespace NewOS;
+ using namespace Kernel;
MUST_PASS(ProcessScheduler::The().Leak().TheCurrent());
@@ -48,9 +48,11 @@ T* tls_new_class(Args&&... args)
{
T* ptr = tls_new_ptr<T>();
+ using namespace Kernel;
+
if (ptr)
{
- *ptr = T(NewOS::forward(args)...);
+ *ptr = T(forward(args)...);
return ptr;
}
@@ -66,4 +68,4 @@ inline bool tls_delete_class(T* ptr)
{
ptr->~T();
return tls_delete_ptr(ptr);
-} \ No newline at end of file
+}