Mark3 Realtime Kernel
threadlistlist.h
Go to the documentation of this file.
1 /*===========================================================================
2  _____ _____ _____ _____
3  ___| _|__ __|_ |__ __|__ |__ __| __ |__ ______
4 | \ / | || \ || | || |/ / ||___ |
5 | \/ | || \ || \ || \ ||___ |
6 |__/\__/|__|_||__|\__\ __||__|\__\ __||__|\__\ __||______|
7  |_____| |_____| |_____| |_____|
8 
9 --[Mark3 Realtime Platform]--------------------------------------------------
10 
11 Copyright (c) 2012 - 2019 m0slevin, all rights reserved.
12 See license.txt for more information
13 =========================================================================== */
21 #pragma once
22 
23 #include "mark3.h"
24 
25 //---------------------------------------------------------------------------
26 namespace Mark3 {
27 class ThreadList;
28 
29 //---------------------------------------------------------------------------
37 public:
43  static void Add(ThreadList* pclThreadList_)
44  {
45  m_clThreadListList.Add(pclThreadList_);
46  }
47 
53  static void Remove(ThreadList* pclThreadList_)
54  {
55  m_clThreadListList.Remove(pclThreadList_);
56  }
57 
62  static ThreadList* GetHead()
63  {
64  return m_clThreadListList.GetHead();
65  }
66 
67 private:
69 };
70 } // namespace Mark3
static TypedDoubleLinkList< ThreadList > m_clThreadListList
The ThreadList Class. This class is used for building thread-management facilities, such as schedulers, and blocking objects.
Definition: threadlist.h:38
static void Add(ThreadList *pclThreadList_)
Add Add a ThreadList to the list for tracking.
Definition: atomic.cpp:23
The ThreadListList class Class used to track all threadlists active in the OS kernel. At any point in time, the list can be traversed to get a complete view of all running, blocked, or stopped threads in the system.
static void Remove(ThreadList *pclThreadList_)
Remove Remove a threadlist from tracking.
Single include file given to users of the Mark3 Kernel API.
static ThreadList * GetHead()
GetHead.