構造体 toppers::itron::jsp::semaphore_policy

セマフォのためのポリシークラス [詳細]

#include "toppers/itron/jsp/semaphore.hpp"

toppers::itron::jsp::semaphore_policyに対する継承グラフ

Inheritance graph
[凡例]
toppers::itron::jsp::semaphore_policyのコラボレーション図

Collaboration graph
[凡例]
すべてのメンバ一覧

Static Public メソッド

static void generate_assertions (const kernel_cfg &cfg, std::ostream &ostr)
 パラメータチェックコード の生成

Static Public 変数

static const char name_ [] = "semaphore"
static const char symbol_ [] = "sem"
static const char *const apis_ [] = { "CRE_SEM", 0 }
static const char *const params_ [] = { "$semid { #sematr isemcnt maxsem }", 0 }
static const char init_format_ [] = "\t{ @#sematr, @isemcnt, @maxsem }"

説明

セマフォのためのポリシークラス

このクラスで実現される静的API

  CRE_SEM( ID semid, { ATR sematr, UINT isemcnt, UINT maxsem } );

semaphore.hpp76 行で定義されています。


関数

void toppers::itron::jsp::semaphore_policy::generate_assertions const kernel_cfg cfg,
std::ostream &  ostr
[static]
 

パラメータチェックコード の生成

引数:
cfg kernel_cfg.c 生成情報
ostr 出力ストリーム

toppers::itron::kernel_object_policy_baseを再定義しています。

semaphore.cpp54 行で定義されています。

参照先 toppers::kernel_cfg::get_inib_array()name_.

00055       {
00056         const kernel_cfg::inib_array* pinibs = cfg.get_inib_array( name_ );
00057         static const char pattern[] = 
00058           "__CFG_ASSERT((@isemcnt) <= (@maxsem));\n"
00059           "__CFG_ASSERT(0 < (@maxsem) && (@maxsem) <= UINT_MAX);\n"
00060           "\n";
00061         std::transform( pinibs->begin(), pinibs->end(), std::ostream_iterator<std::string>( ostr ), generator( pattern ) );
00062       }

関数の呼び出しグラフ:


この構造体の説明は次のファイルから生成されました:
Copyright © 2006 by TAKAGI Nobuhisa.
このページは Wed Apr 12 16:32:08 2006 に Doxygen によって生成されました。