comparison TaskManager/Test/test_render/spe/UpdateKey.cc @ 467:44c0bce54dcf

fix all examples. test_render is not working now.
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Thu, 01 Oct 2009 19:25:25 +0900
parents 9db30a515742
children
comparison
equal deleted inserted replaced
466:4fa8760e18c2 467:44c0bce54dcf
3 #include "UpdateKey.h" 3 #include "UpdateKey.h"
4 #include "global_alloc.h" 4 #include "global_alloc.h"
5 5
6 SchedDefineTask(UpdateKey); 6 SchedDefineTask(UpdateKey);
7 7
8 int 8 static int
9 UpdateKey::run(SchedTask *smanager, void *rbuf, void *wbuf) 9 run(SchedTask *smanager, void *rbuf, void *wbuf)
10 { 10 {
11 key_stat *key = (key_stat*)smanager->get_input(rbuf, 0); 11 key_stat *key = (key_stat*)smanager->get_input(rbuf, 0);
12 key_stat *gdata = (key_stat*)smanager->global_get(KEY_STATUS); 12 key_stat *gdata = (key_stat*)smanager->global_get(KEY_STATUS);
13 memcpy(gdata, key, sizeof(key_stat)); 13 memcpy(gdata, key, sizeof(key_stat));
14 14