Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
FORMUS3IC_LAS3
/
embb
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
3fb52e5d
authored
Nov 08, 2016
by
Marcus Winter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed more vc2012 problems
parent
28ea8fad
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
base_c/include/embb/base/c/atomic.h
+3
-1
base_c/include/embb/base/c/internal/atomic/destroy.h
+1
-0
base_c/test/thread_index_test.cc
+0
-2
No files found.
base_c/include/embb/base/c/atomic.h
View file @
3fb52e5d
...
...
@@ -292,7 +292,7 @@ void embb_atomic_xor_assign_TYPE(
extern
"C"
{
#endif
#include <embb/base/c/internal/c
make_c
onfig.h>
#include <embb/base/c/internal/config.h>
#ifdef EMBB_THREADING_ANALYSIS_MODE
...
...
@@ -335,11 +335,13 @@ void embb_mutex_destroy(
#define EMBB_ATOMIC_INIT_CHECK(variable) assert(variable->marker == 0x12345678)
#define EMBB_ATOMIC_INIT_MARKER(variable) variable->marker = 0x12345678
#define EMBB_ATOMIC_DESTROY_MARKER(variable) variable->marker = 0
#else
#define EMBB_ATOMIC_INIT_CHECK(variable) (void)(variable)
#define EMBB_ATOMIC_INIT_MARKER(variable) (void)(variable)
#define EMBB_ATOMIC_DESTROY_MARKER(variable) (void)(variable)
#endif
...
...
base_c/include/embb/base/c/internal/atomic/destroy.h
View file @
3fb52e5d
...
...
@@ -44,6 +44,7 @@
EMBB_CAT2(embb_atomic_, EMBB_ATOMIC_PARAMETER_ATOMIC_TYPE_SUFFIX)* variable) { \
EMBB_ATOMIC_INIT_CHECK(variable); \
EMBB_ATOMIC_MUTEX_DESTROY(variable->internal_mutex); \
EMBB_ATOMIC_DESTROY_MARKER(variable); \
}
#undef EMBB_ATOMIC_METHOD_TO_GENERATE
...
...
base_c/test/thread_index_test.cc
View file @
3fb52e5d
...
...
@@ -112,8 +112,6 @@ void ThreadIndexTest::TestN() {
embb_thread_join
(
&
thread
,
NULL
);
delete
[]
threads
;
embb_internal_thread_index_set_max
(
old_max
);
embb_atomic_destroy_int
(
&
flag
);
}
int
ThreadStart
(
void
*
arg
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment