mirror of
https://github.com/rvtr/ctr_mcu.git
synced 2025-10-31 13:51:10 -04:00
immediateタスクの、キュー前詰めをアトミックに
git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_mcu@356 013db118-44a6-b54f-8bf7-843cb86687b1
This commit is contained in:
parent
c38c488949
commit
3de2b9b362
@ -8,6 +8,7 @@
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef _WIN32
|
||||
typedef unsigned char bit;
|
||||
typedef unsigned char u8;
|
||||
@ -29,7 +30,6 @@ typedef unsigned char u8;
|
||||
#ifdef _WIN32
|
||||
#include "../sim/simOnWin.h"
|
||||
#endif
|
||||
|
||||
//#define _renge_test_
|
||||
|
||||
#define true 1
|
||||
@ -43,12 +43,10 @@ bit renge_task_immediate_not_empty;
|
||||
bit renge_task_interval_in_force;
|
||||
|
||||
|
||||
|
||||
#include "..\bsr_system.h"
|
||||
extern system_status_ system_status;
|
||||
|
||||
|
||||
|
||||
//******************************************************************************
|
||||
static void renge_task_immed_init();
|
||||
static void renge_task_immed_del();
|
||||
@ -258,11 +256,10 @@ err renge_task_immed_run(){
|
||||
{
|
||||
do{
|
||||
j --;
|
||||
DI();
|
||||
tasks_immed[ j ] = TSK_IMM_EMPTY_;
|
||||
// ƒŠƒXƒg‘O‹l‚ߊ®—¹
|
||||
EI();
|
||||
}while( i < j );
|
||||
EI();
|
||||
goto imm_list_sort_fin;
|
||||
}
|
||||
else
|
||||
|
||||
Loading…
Reference in New Issue
Block a user