Mercurial > hg > Members > kono > Cerium
view TaskManager/Test/test_render/task/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 | 01dc4e5be965 |
children |
line wrap: on
line source
#include "TaskManager.h" #include "KeyStat.h" #include "UpdateKey.h" #include "global_alloc.h" SchedDefineTask(UpdateKey); static int run(SchedTask *smanager, void *rbuf, void *wbuf) { key_stat *key = (key_stat*)smanager->get_input(rbuf, 0); key_stat *gdata = (key_stat*)smanager->global_get(KEY_STATUS); memcpy(gdata, key, sizeof(key_stat)); return 0; }