Mercurial > hg > Members > kono > Cerium
view Renderer/Engine/task/DataUpdate.cc @ 983:ff74988bbb2a
minor fix
author | root@henri.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Fri, 01 Oct 2010 00:37:06 +0900 |
parents | 01b6d924a560 |
children | e40dd2384357 |
line wrap: on
line source
#include <stdio.h> #include "DataUpdate.h" #include "Func.h" #include "string.h" /* これは必須 */ SchedDefineTask(DataUpdate); static int run(SchedTask *s, void *rbuf, void *wbuf) { void *idata = (void*)s->get_input(rbuf, 0); long size = (long)s->get_param(0); long load_id = (long)s->get_param(1); void *global_data = (void*)s->global_get(load_id); memcpy(global_data,idata,size); return 0; }