view TaskManager/Test/test_render/task/UpdateKey.cc @ 450:01dc4e5be965

KeyStat fixed...
author kazz@henri.cr.ie.u-ryukyu.ac.jp
date Fri, 25 Sep 2009 22:04:17 +0900
parents 475a01e217cd
children 44c0bce54dcf
line wrap: on
line source

#include "TaskManager.h"
#include "KeyStat.h"
#include "UpdateKey.h"
#include "global_alloc.h"

SchedDefineTask(UpdateKey);

int 
UpdateKey::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;
}