メインページ | モジュール | 名前空間一覧 | クラス階層 | 構成 | ファイル一覧 | 名前空間メンバ | 構成メンバ | ファイルメンバ | 関連ページ

クラス テンプレートtoppers::task_context_body< Diagnostics, Stub > の解説
[カーネルオブジェクト管理]

タスクコンテキストの本体定義用基底クラス [詳細]

#include <toppers/context.hpp>

toppers::task_context_body< Diagnostics, Stub >に対する継承グラフ

toppers::task_body< Diagnostics, Stub > toppers::taskexception_body< Diagnostics, Stub > すべてのメンバ一覧

Public メンバ関数

void run ()
 タスク本体動作の実行

VP_INT get_extended_info () const
 タスクの拡張情報の参照


Static Public メンバ関数

ER sleep (forever_tag=forever)
 タスクの起床待ち

ER sleep (TMO tmout)
 タスクの起床待ち(タイムアウト指定)

ER delay (RELTIM dlytim)
 タスクの遅延

ER yield ()
 タスクの切り替え


Static Public 変数

const task_context_tag task_context = toppers::task_context
 タスクコンテキストを指定する定数

const non_task_context_tag non_task_context = toppers::non_task_context
 非タスクコンテキストを指定する定数

const task_context_tag context_independent = toppers::task_context
 現在のコンテキスト(すなわちタスクコンテキスト)を指定する定数


Protected 型

typedef Stub stub
 サービスコールスタブ


Protected メンバ関数

 task_context_body (VP_INT exinf)
 コンストラクタ

 ~task_context_body ()
 デストラクタ


Static Protected メンバ関数

ID get_task_id ()
 実行中のタスクID番号を参照する


解説

template<class Diagnostics, class Stub>
class toppers::task_context_body< Diagnostics, Stub >

  task_context_body テンプレートクラスは、タスクコンテキスト用ボディクラスの基底クラスとして使用される。
  タスクコンテキストにおいて、自タスクに対する主な操作はこのクラスでカプセル化されている。 task_context_body テンプレートクラスから派生したクラスでは、context_independent 定数は task_context 定数と同じであり、シンタックスを汎用化するために使用することができる。

参照:
non_task_context_body