annotate Renderer/Engine/spe/UpdateKey.cc @ 1161:cc1a50cac83d
draft
use MemorySegment API for pp load. do not check execution of the cell side. to be continued..
author |
Yutaka_Kinjyo |
date |
Thu, 05 May 2011 00:15:43 +0900 |
parents |
eb6add789a24 |
children |
|
rev |
line source |
539
|
1 #include "TaskManager.h"
|
|
2 #include "KeyStat.h"
|
|
3 #include "UpdateKey.h"
|
801
|
4 #include "Func.h"
|
539
|
5
|
|
6 SchedDefineTask(UpdateKey);
|
|
7
|
|
8 static int
|
|
9 run(SchedTask *smanager, void *rbuf, void *wbuf)
|
|
10 {
|
|
11 key_stat *key = (key_stat*)smanager->get_input(rbuf, 0);
|
|
12 key_stat *gdata = (key_stat*)smanager->global_get(KEY_STATUS);
|
|
13 memcpy(gdata, key, sizeof(key_stat));
|
|
14
|
|
15 return 0;
|
|
16 }
|