IBM Developer is your one-stop location for getting hands-on training and learning in-demand skills on relevant technologies such as generative AI, data science, AI, and open source.
![連載: IBM Watson Workspace #鬼わか アプリケーション開発: 第 7 回: IBM Watson Workspace で AI を利用したアプリ連携の実現 #鬼わか 解説(前編)](https://cdn-ak-scissors.b.st-hatena.com/image/square/976d6b25b135fedb9c2be132b02244d48574a5af/height=288;version=1;width=512/http%3A%2F%2Fwww.ibm.com%2Fdeveloperworks%2Fi%2Fdw-social-201508.png)
クラスメンバ関数を_beginthreadする場合、メンバ関数はstaticでなければならない。 非staticなメンバ関数を実行したい場合は、以下のようにstaticでなメンバ関数をかませて実行する。 // スレッドを発生されるクラス class Test { :private HANDLE thread; // スレッドハンドル // スレッド開始 void threadStart(){ thread = (HANDLE) _beginthread( &test::executeLauncher, // ランチャを起動 0, this); } // ランチャ static void executeLauncher(void* args){ // 無理やりtest*型にキャストして、本命の処理を実行する。 reinterpret_cast<test*>(args)->execute();
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く