mFrame
載入中...
搜尋中...
無符合項目
mframe::sys 命名空間(Namespace)參考文件

複合項目

struct  Allocator
 
class  DefaultAllocator
 
class  EntryPoint
 
struct  HardwareInfo
 
struct  Kernel
 
class  Stacker
 
class  Svchost
 
struct  SystemConfig
 
struct  SystemControl
 
class  Thread
 
class  Timer
 

列舉型態

enum struct  ErrorCode : int {
  NONE = 0x00000000 + 0 , HARD_FAULT , SYSTEM_ERROR , INSUFFICIENT_MEMORY ,
  INSUFFICIENT_STACK_MEMORY , NULL_POINTER , ILLEGAL_ARGUMENT , WRITE_TO_READONLY_MEMORY ,
  ARRAY_INDEX_OUT_OF_BOUNDS , RESERVED = 0x7FFFFFFF
}
 
enum struct  ThreadPriority : int {
  LOW = 8 , LOW1 = 8 + 1 , LOW2 = 8 + 2 , LOW3 = 8 + 3 ,
  LOW4 = 8 + 4 , LOW5 = 8 + 5 , LOW6 = 8 + 6 , LOW7 = 8 + 7 ,
  BELOW_NORMAL = 16 , BELOW_NORMAL1 = 16 + 1 , BELOW_NORMAL2 = 16 + 2 , BELOW_NORMAL3 = 16 + 3 ,
  BELOW_NORMAL4 = 16 + 4 , BELOW_NORMAL5 = 16 + 5 , BELOW_NORMAL6 = 16 + 6 , BELOW_NORMAL7 = 16 + 7 ,
  NORMAL = 24 , NORMAL1 = 24 + 1 , NORMAL2 = 24 + 2 , NORMAL3 = 24 + 3 ,
  NORMAL4 = 24 + 4 , NORMAL5 = 24 + 5 , NORMAL6 = 24 + 6 , NORMAL7 = 24 + 7 ,
  ABOVE_NORMAL = 32 , ABOVE_NORMAL1 = 32 + 1 , ABOVE_NORMAL2 = 32 + 2 , ABOVE_NORMAL3 = 32 + 3 ,
  ABOVE_NORMAL4 = 32 + 4 , ABOVE_NORMAL5 = 32 + 5 , ABOVE_NORMAL6 = 32 + 6 , ABOVE_NORMAL7 = 32 + 7 ,
  HIGH = 40 , HIGH1 = 40 + 1 , HIGH2 = 40 + 2 , HIGH3 = 40 + 3 ,
  HIGH4 = 40 + 4 , HIGH5 = 40 + 5 , HIGH6 = 40 + 6 , HIGH7 = 40 + 7 ,
  REALTIME = 48 , REALTIME1 = 48 + 1 , REALTIME2 = 48 + 2 , REALTIME3 = 48 + 3 ,
  REALTIME4 = 48 + 4 , REALTIME5 = 48 + 5 , REALTIME6 = 48 + 6 , REALTIME7 = 48 + 7 ,
  ERROR = -1 , RESERVED = 0x7FFFFFFF
}
 
enum struct  ThreadState : char {
  INACTIVE , READY , RUNNING , BLOCKED ,
  TERMINATED , ERROR
}
 

詳細描述

Copyright (c) 2020 ZxyKira All rights reserved.

SPDX-License-Identifier: MIT

列舉型態說明文件

◆ ErrorCode

enum struct mframe::sys::ErrorCode : int
strong
列舉值
NONE 

預設無異常

HARD_FAULT 

硬體錯誤

SYSTEM_ERROR 

系統錯誤

INSUFFICIENT_MEMORY 

系統內存不足

INSUFFICIENT_STACK_MEMORY 

執行緒內存不足

NULL_POINTER 

物件值為null

ILLEGAL_ARGUMENT 

方法呼叫時參數型態不同

WRITE_TO_READONLY_MEMORY 

寫入至唯讀記憶體

ARRAY_INDEX_OUT_OF_BOUNDS 

陣列索引值小於0或超過陣列邊界

RESERVED 

RESERVED.

◆ ThreadPriority

enum struct mframe::sys::ThreadPriority : int
strong
列舉值
LOW 

PRIORITY_: low.

LOW1 

PRIORITY_: low + 1.

LOW2 

PRIORITY_: low + 2.

LOW3 

PRIORITY_: low + 3.

LOW4 

PRIORITY_: low + 4.

LOW5 

PRIORITY_: low + 5.

LOW6 

PRIORITY_: low + 6.

LOW7 

PRIORITY_: low + 7.

BELOW_NORMAL 

PRIORITY_: below normal.

BELOW_NORMAL1 

PRIORITY_: below normal + 1.

BELOW_NORMAL2 

PRIORITY_: below normal + 2.

BELOW_NORMAL3 

PRIORITY_: below normal + 3.

BELOW_NORMAL4 

PRIORITY_: below normal + 4.

BELOW_NORMAL5 

PRIORITY_: below normal + 5.

BELOW_NORMAL6 

PRIORITY_: below normal + 6.

BELOW_NORMAL7 

PRIORITY_: below normal + 7.

NORMAL 

PRIORITY_: normal.

NORMAL1 

PRIORITY_: normal + 1.

NORMAL2 

PRIORITY_: normal + 2.

NORMAL3 

PRIORITY_: normal + 3.

NORMAL4 

PRIORITY_: normal + 4.

NORMAL5 

PRIORITY_: normal + 5.

NORMAL6 

PRIORITY_: normal + 6.

NORMAL7 

PRIORITY_: normal + 7.

ABOVE_NORMAL 

PRIORITY_: above normal.

ABOVE_NORMAL1 

PRIORITY_: above normal + 1.

ABOVE_NORMAL2 

PRIORITY_: above normal + 2.

ABOVE_NORMAL3 

PRIORITY_: above normal + 3.

ABOVE_NORMAL4 

PRIORITY_: above normal + 4.

ABOVE_NORMAL5 

PRIORITY_: above normal + 5.

ABOVE_NORMAL6 

PRIORITY_: above normal + 6.

ABOVE_NORMAL7 

PRIORITY_: above normal + 7.

HIGH 

PRIORITY_: high.

HIGH1 

PRIORITY_: high + 1.

HIGH2 

PRIORITY_: high + 2.

HIGH3 

PRIORITY_: high + 3.

HIGH4 

PRIORITY_: high + 4.

HIGH5 

PRIORITY_: high + 5.

HIGH6 

PRIORITY_: high + 6.

HIGH7 

PRIORITY_: high + 7.

REALTIME 

PRIORITY_: realtime.

REALTIME1 

PRIORITY_: realtime + 1.

REALTIME2 

PRIORITY_: realtime + 2.

REALTIME3 

PRIORITY_: realtime + 3.

REALTIME4 

PRIORITY_: realtime + 4.

REALTIME5 

PRIORITY_: realtime + 5.

REALTIME6 

PRIORITY_: realtime + 6.

REALTIME7 

PRIORITY_: realtime + 7.

ERROR 

System cannot determine priority or illegal priority.

RESERVED 

Prevents enum down-size compiler optimization.

◆ ThreadState

enum struct mframe::sys::ThreadState : char
strong
列舉值
INACTIVE 

Inactive. The thread is created but not actively used, or has been terminated.

READY 

Ready. The thread is ready for execution but not currently running.

RUNNING 

Running. The thread is currently running.

BLOCKED 

Blocked. The thread is currently blocked (delayed, waiting for an event or suspended).

TERMINATED 

Terminated. The thread is terminated and all its resources are not yet freed.

ERROR 

Error. The thread does not exist.