view Renderer/Engine/spe/UpdateKey.cc @ 1161:cc1a50cac83d draft

use MemorySegment API for pp load. do not check execution of the cell side. to be continued..
author Yutaka_Kinjyo
date Thu, 05 May 2011 00:15:43 +0900
parents eb6add789a24
children
line wrap: on
line source

#include "TaskManager.h"
#include "KeyStat.h"
#include "UpdateKey.h"
#include "Func.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;
}