view TaskManager/Cell/PpeScheduler.cc @ 421:6094dfd1f08c draft

comment
author game@henri.cr.ie.u-ryukyu.ac.jp
date Thu, 24 Sep 2009 12:35:32 +0900
parents 028ffc9c0375
children
line wrap: on
line source

#include <stdlib.h>
#include <string.h>
#include "PpeScheduler.h"

void*
PpeScheduler::allocate(int size)
{
    void *buff;
    
    posix_memalign(&buff, DEFAULT_ALIGNMENT, size);
    bzero(buff, size);

    return buff;
}