「API/kernel/sceKernelCreateThread」の編集履歴(バックアップ)一覧はこちら

API/kernel/sceKernelCreateThread - (2008/11/25 (火) 02:08:32) の1つ前との変更点

追加された行は緑色になります。

削除された行は赤色になります。

**機能 スレッドを作成。作成のみ スタートは別関数で **API #asciiart(blockquote){SceUID sceKernelCreateThread(const char *name, SceKernelThreadEntry entry, int initPriority,int stackSize, SceUInt attr, SceKernelThreadOptParam *option); } **第一引数 スレッドの名前 **第二引数 作るスレッドで実行したい関数を指定 int 関数名(SceSize args,void *argp){……} みたいなプロトタイプで。 **第三引数 スレッドの優先度 **第四引数 スタックのサイズ **第5引数 スレッド属性 enum PspThreadAttributes { /** Enable VFPU access for the thread. */ PSP_THREAD_ATTR_VFPU = 0x00004000, /** Start the thread in user mode (done automatically if the thread creating it is in user mode). */ PSP_THREAD_ATTR_USER = 0x80000000, /** Thread is part of the USB/WLAN API. */ PSP_THREAD_ATTR_USBWLAN = 0xa0000000, /** Thread is part of the VSH API. */ PSP_THREAD_ATTR_VSH = 0xc0000000, /** Allow using scratchpad memory for a thread, NOT USABLE ON V1.0 */ PSP_THREAD_ATTR_SCRATCH_SRAM = 0x00008000, /** Disables filling the stack with 0xFF on creation */ PSP_THREAD_ATTR_NO_FILLSTACK = 0x00100000, /** Clear the stack when the thread is deleted */ PSP_THREAD_ATTR_CLEAR_STACK = 0x00200000, }; で指定。 **第6引数 オプション指定 struct SceKernelThreadOptParam { /** Size of the ::SceKernelThreadOptParam structure. */ SceSize size; /** UID of the memory block (?) allocated for the thread's stack. */ SceUID stackMpid; }; しなくてよさそう。0で **戻り値 作ったスレッドのUIDかエラーコードがかえります。
**機能 スレッドを作成。作成のみ スタートは別関数で **API #asciiart(blockquote){SceUID sceKernelCreateThread(const char *name, SceKernelThreadEntry entry, int initPriority,int stackSize, SceUInt attr, SceKernelThreadOptParam *option); } pspthreadman.hで宣言してあります。 pspkernel.hでもおk **第一引数 スレッドの名前 **第二引数 作るスレッドで実行したい関数を指定 int 関数名(SceSize args,void *argp){……} みたいなプロトタイプで。 **第三引数 スレッドの優先度 **第四引数 スタックのサイズ **第5引数 スレッド属性 enum PspThreadAttributes { /** Enable VFPU access for the thread. */ PSP_THREAD_ATTR_VFPU = 0x00004000, /** Start the thread in user mode (done automatically if the thread creating it is in user mode). */ PSP_THREAD_ATTR_USER = 0x80000000, /** Thread is part of the USB/WLAN API. */ PSP_THREAD_ATTR_USBWLAN = 0xa0000000, /** Thread is part of the VSH API. */ PSP_THREAD_ATTR_VSH = 0xc0000000, /** Allow using scratchpad memory for a thread, NOT USABLE ON V1.0 */ PSP_THREAD_ATTR_SCRATCH_SRAM = 0x00008000, /** Disables filling the stack with 0xFF on creation */ PSP_THREAD_ATTR_NO_FILLSTACK = 0x00100000, /** Clear the stack when the thread is deleted */ PSP_THREAD_ATTR_CLEAR_STACK = 0x00200000, }; で指定。 **第6引数 オプション指定 struct SceKernelThreadOptParam { /** Size of the ::SceKernelThreadOptParam structure. */ SceSize size; /** UID of the memory block (?) allocated for the thread's stack. */ SceUID stackMpid; }; しなくてよさそう。0で **戻り値 作ったスレッドのUIDかエラーコードがかえります。

表示オプション

横に並べて表示:
変化行の前後のみ表示: