Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
9ee799d4
Commit
9ee799d4
authored
Sep 04, 2014
by
Joseph Noir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added macros for RIOT build
parent
c97d73e4
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
0 deletions
+30
-0
CMakeLists.txt
CMakeLists.txt
+7
-0
configure
configure
+9
-0
libcaf_core/caf/detail/single_reader_queue.hpp
libcaf_core/caf/detail/single_reader_queue.hpp
+14
-0
No files found.
CMakeLists.txt
View file @
9ee799d4
...
...
@@ -251,6 +251,11 @@ if (CAF_USE_ASIO)
add_definitions
(
-DCAF_USE_ASIO
)
endif
()
if
(
CAF_FOR_RIOT
)
add_definitions
(
-D__RIOTBUILD_FLAG
)
endif
()
################################################################################
# check for biicode build pipeline #
################################################################################
...
...
@@ -270,6 +275,7 @@ IF(BIICODE)
RETURN
()
ENDIF
()
################################################################################
# setup for install target #
################################################################################
...
...
@@ -586,6 +592,7 @@ if(NOT CAF_NO_SUMMARY)
"
\n
Log level:
${
LOG_LEVEL_STR
}
"
"
\n
With mem. mgmt.:
${
CAF_BUILD_MEM_MANAGEMENT
}
"
"
\n
Use Boost ASIO:
${
CAF_USE_ASIO
}
"
"
\n
For RIOT-OS:
${
CAF_FOR_RIOT
}
"
"
\n
"
"
\n
Build examples:
${
CAF_BUILD_EXAMPLES
}
"
"
\n
Build unit tests:
${
CAF_BUILD_UNIT_TESTS
}
"
...
...
configure
View file @
9ee799d4
...
...
@@ -50,6 +50,10 @@ Usage: $0 [OPTION]... [VAR=VALUE]...
--no-auto-libc++ do not automatically enable libc++ for Clang
--warnings-as-errors enables -Werror
--with-asio enable ASIO multiplexer
--for-riot build CAF for riot
- uses RIOT thread impl
- build without memory management
- static build only
Installation Directories:
--prefix=PREFIX installation directory [/usr/local]
...
...
@@ -229,6 +233,11 @@ while [ $# -ne 0 ]; do
--no-compiler-check
)
append_cache_entry CAF_NO_COMPILER_CHECK BOOL
yes
;;
--for-riot
)
append_cache_entry CAF_FOR_RIOT BOOL
yes
append_cache_entry CAF_NO_MEM_MANAGEMENT BOOL
yes
append_cache_entry CAF_BUILD_STATIC_ONLY STRING
yes
;;
--no-auto-libc
++
)
append_cache_entry CAF_NO_AUTO_LIBCPP BOOL
yes
;;
...
...
libcaf_core/caf/detail/single_reader_queue.hpp
View file @
9ee799d4
...
...
@@ -236,7 +236,20 @@ class single_reader_queue {
// should be unreachable
CAF_CRITICAL
(
"invalid result of enqueue()"
);
}
#ifdef __RIOTBUILD_FLAG
template
<
class
Mutex
,
class
CondVar
>
void
synchronized_await
(
Mutex
&
mtx
,
CondVar
&
cv
)
{
CAF_REQUIRE
(
!
closed
());
}
template
<
class
Mutex
,
class
CondVar
,
class
TimePoint
>
bool
synchronized_await
(
Mutex
&
mtx
,
CondVar
&
cv
,
const
TimePoint
&
timeout
)
{
CAF_REQUIRE
(
!
closed
());
}
#else
template
<
class
Mutex
,
class
CondVar
>
void
synchronized_await
(
Mutex
&
mtx
,
CondVar
&
cv
)
{
CAF_ASSERT
(
!
closed
());
...
...
@@ -263,6 +276,7 @@ class single_reader_queue {
}
return
true
;
}
#endif
private:
// exposed to "outside" access
...
...
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