MonAPI
Messageクラス †
メンバ関数 †
- static int send(dword tid, MessageInfo* info);
- メッセージを相手のメッセージボックスに送る
- tid:送信先のスレッド
- info:メッセージ本体
- static int send(dword tid, dword header, dword arg1 = 0, dword arg2 = 0, dword arg3 = 0, const char* str = NULL);
- static int receive(MessageInfo* info);
- メッセージボックスからメッセージを1つ取り出し、削除する。メッセージを取り出せたならば0を返し、取り出せなかったならば-1を返す。
- static int reply(MessageInfo* info, dword arg2 = 0, dword arg3 = 0, const char* str = NULL);
- static int peek(MessageInfo* info, int index, int flags = 0);
- メッセージリスト中からindex番目のメッセージを取り出す。indexがリストの長さを超えていたら1を、取り出せなければ-1を、そして取り出せたならば0を返す。
- static void create(MessageInfo* info, dword header, dword arg1 = 0, dword arg2 = 0, dword arg3 = 0, const char* str = NULL);
- static bool exist()
- static dword lookup(const char* name);
- static dword lookupMainThread(const char* name);
- static int sendReceiveA(MessageInfo* dst, dword tid, MessageInfo* info);
- static int sendReceive(MessageInfo* dst, dword tid, dword header, dword arg1 = 0, dword arg2 = 0, dword arg3 = 0, const char* str = NULL);
- static int receive(MessageInfo* dst, MessageInfo* src, bool(*equals)(MessageInfo* msg1, MessageInfo* msg2));
- static bool equalsHeader(MessageInfo* msg1, MessageInfo* msg2)
- static bool equalsFrom(MessageInfo* msg1, MessageInfo* msg2)
- static bool equalsFromHeader(MessageInfo* msg1, MessageInfo* msg2)
- static bool equalsFromHeaderArg1(MessageInfo* msg1, MessageInfo* msg2)
サンプルコード †
誰かがサンプルコードを書いてくれたらうれしい
now: 9
リンク
最新の20件
2018-10-07
2018-09-20
2018-09-03
2018-05-09
2017-09-29
2017-01-10
2016-12-11
2016-10-04
2016-08-14
2016-05-29
2015-12-28
2013-02-25
2013-02-21
2013-02-20
2013-02-12
2013-02-11
2013-02-10
最新の20件
2010-02-01
2010-01-31
2010-01-30
2010-01-29
2010-01-16
Counter: 5312,
today: 2,
yesterday: 0
HTML convert time to 0.016 sec.
Copyright(C)2003-2007 MonaProjectTeam, all rights reserved. powered by www.be-interactive.org