Skip to content

Commit 4638cea

Browse files
authored
Merge pull request #3297 from Mizuho32/master-greentea_client-mutex
added static specifer in green_metrics.cpp
2 parents aeabcc9 + 56d71a4 commit 4638cea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

features/frameworks/greentea-client/source/greentea_metrics.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ typedef struct {
3434
} thread_info_t;
3535

3636
// Mutex to protect "buf"
37-
SingletonPtr<Mutex> mutex;
37+
static SingletonPtr<Mutex> mutex;
3838
#if defined(MBED_STACK_STATS_ENABLED) && MBED_STACK_STATS_ENABLED
3939
static char buf[128];
4040
static SingletonPtr<CircularBuffer<thread_info_t, THREAD_BUF_COUNT> > queue;

0 commit comments

Comments
 (0)