threadprofileclear.c
1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/************************************************************************
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 */