view Renderer/Engine/task/UpdateKey.cc @ 591:65e52fd2c2e2 draft

send linda not work...
author kazz@kazzone.st.ie.u-ryukyu.ac.jp
date Sun, 01 Nov 2009 06:14:52 +0900
parents 3bc98f6d31ff
children eb6add789a24
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;
}