File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
TESTS/mbed_drivers/race_test Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -58,11 +58,13 @@ static SingletonPtr<TestClass> test_class;
58
58
static void main_func_race ()
59
59
{
60
60
get_test_class ();
61
+ TEST_ASSERT_EQUAL_UINT32 (1 , instance_count);
61
62
}
62
63
63
64
static void main_class_race ()
64
65
{
65
66
test_class->do_something ();
67
+ TEST_ASSERT_EQUAL_UINT32 (1 , instance_count);
66
68
}
67
69
68
70
void test_case_func_race ()
Original file line number Diff line number Diff line change @@ -977,6 +977,10 @@ extern "C" void __env_unlock( struct _reent *_r )
977
977
__rtos_env_unlock (_r);
978
978
}
979
979
980
+ #endif
981
+
982
+ #if defined (__GNUC__) || defined(__CC_ARM) || (defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050))
983
+
980
984
#define CXA_GUARD_INIT_DONE (1 << 0 )
981
985
#define CXA_GUARD_INIT_IN_PROGRESS (1 << 1 )
982
986
#define CXA_GUARD_MASK (CXA_GUARD_INIT_DONE | CXA_GUARD_INIT_IN_PROGRESS)
You can’t perform that action at this time.
0 commit comments