File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 8
8
#include < stdlib.h>
9
9
#include < stdio.h>
10
10
#include < string.h>
11
+ #include < atomic>
11
12
12
13
#ifdef _WIN32
13
14
#pragma warning (disable:4996)
@@ -59,7 +60,7 @@ typedef struct raw_event {
59
60
60
61
static raw_event_t *event_buffer;
61
62
static raw_event_t *flush_buffer;
62
- static volatile int event_count;
63
+ static std::atomic_int event_count;
63
64
static int is_tracing = FALSE ;
64
65
static int is_flushing = FALSE ;
65
66
static int events_in_progress = 0 ;
Original file line number Diff line number Diff line change @@ -354,7 +354,7 @@ TEST(
354
354
BehaviorTreeFactory factory;
355
355
356
356
factory.registerBehaviorTreeFromText (xmlA);
357
- EXPECT_ANY_THROW (factory.createTree (" Wrong Name" ));
357
+ EXPECT_ANY_THROW (auto tree = factory.createTree (" Wrong Name" ));
358
358
}
359
359
360
360
TEST (BehaviorTreeReload, ReloadSameTree)
You can’t perform that action at this time.
0 commit comments