Mercurial > hg > Members > kono > Cerium
view Renderer/Engine/task/UpdateKey.cc @ 639:70c5c2d2eb24
fix
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 19 Nov 2009 18:45:24 +0900 |
parents | 735f76483bb2 |
children | 496a8159e840 |
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; }