threadprofileclear.c 1.22 KB
/************************************************************************
 Copyright (C) 1999 NINTENDO CO,Ltd,
 Copyright (C) 1999 MONEGI CORPORATION,
        All Rights Reserved
This program is a trade secret of NINTENDO CO,Ltd and MONEGI Corp.
and it is not to be reproduced, published, disclosed to others, copied,
adapted, distributed, or displayed without the prior authorization of
NINTENDO CO,Ltd. and MONEGI Corp. Licensee agrees to attach or embed
this Notice on all copies of the program, including partial copies or
modified versions thereof.
*************************************************************************/
/************************************************************************
 $Date: 2002/10/29 08:06:43 $
 $Revision: 1.1.1.1 $
 $Author: blythe $
************************************************************************/

#ifndef _FINALROM

#include <rdb.h>
#include <os_internal.h>
#include <os_thread.h>
#include "osint.h"

/*
 * 指定スレッドIDのプロファイル値のみをクリアする
 */

void
osThreadProfileClear(OSId id)
{
    register u32 saveMask;
    saveMask = __osDisableInt();

    thprof[id].flag = 0;
    thprof[id].count = 0;
    thprof[id].time = 0;

    __osRestoreInt(saveMask);
}

#endif /* #ifndef _FINALROM */