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
b501c326
Commit
b501c326
authored
Dec 08, 2014
by
Joseph Noir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rebase to develop branch
parent
2bc98de4
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
7 deletions
+9
-7
examples/brokers/simple_http_broker.cpp
examples/brokers/simple_http_broker.cpp
+2
-1
examples/message_passing/dancing_kirby.cpp
examples/message_passing/dancing_kirby.cpp
+2
-1
examples/message_passing/dining_philosophers.cpp
examples/message_passing/dining_philosophers.cpp
+1
-1
libcaf_core/caf/detail/producer_consumer_list.hpp
libcaf_core/caf/detail/producer_consumer_list.hpp
+1
-1
libcaf_core/caf/detail/singletons.hpp
libcaf_core/caf/detail/singletons.hpp
+2
-2
libcaf_core/test/spawn.cpp
libcaf_core/test/spawn.cpp
+1
-1
No files found.
examples/brokers/simple_http_broker.cpp
View file @
b501c326
#include <iostream>
#include <iostream>
#include <chrono>
#include "caf/all.hpp"
#include "caf/all.hpp"
#include "caf/chrono.hpp"
#include "caf/io/all.hpp"
#include "caf/io/all.hpp"
using
std
::
cout
;
using
std
::
cout
;
...
...
examples/message_passing/dancing_kirby.cpp
View file @
b501c326
...
@@ -2,10 +2,11 @@
...
@@ -2,10 +2,11 @@
* This example illustrates how to do time-triggered loops in libcaf. *
* This example illustrates how to do time-triggered loops in libcaf. *
\ ******************************************************************************/
\ ******************************************************************************/
#include <chrono>
#include <iostream>
#include <iostream>
#include <algorithm>
#include <algorithm>
#include "caf/all.hpp"
#include "caf/all.hpp"
#include "caf/chrono.hpp"
using
std
::
cout
;
using
std
::
cout
;
using
std
::
endl
;
using
std
::
endl
;
...
...
examples/message_passing/dining_philosophers.cpp
View file @
b501c326
...
@@ -5,11 +5,11 @@
...
@@ -5,11 +5,11 @@
#include <map>
#include <map>
#include <vector>
#include <vector>
#include <chrono>
#include <sstream>
#include <sstream>
#include <iostream>
#include <iostream>
#include "caf/all.hpp"
#include "caf/all.hpp"
#include "caf/chrono.hpp"
using
std
::
cout
;
using
std
::
cout
;
using
std
::
cerr
;
using
std
::
cerr
;
...
...
libcaf_core/caf/detail/producer_consumer_list.hpp
View file @
b501c326
...
@@ -24,11 +24,11 @@
...
@@ -24,11 +24,11 @@
#define CAF_CACHE_LINE_SIZE 64
#define CAF_CACHE_LINE_SIZE 64
#include <chrono>
#include <atomic>
#include <atomic>
#include <cassert>
#include <cassert>
#include "caf/thread.hpp"
#include "caf/thread.hpp"
#include "caf/chrono.hpp"
namespace
caf
{
namespace
caf
{
namespace
detail
{
namespace
detail
{
...
...
libcaf_core/caf/detail/singletons.hpp
View file @
b501c326
...
@@ -85,7 +85,7 @@ class singletons {
...
@@ -85,7 +85,7 @@ class singletons {
static
void
stop_singletons
();
static
void
stop_singletons
();
private:
private:
static
mutex
&
get_mutex
();
static
mutex
&
get_
plugin_
mutex
();
static
std
::
atomic
<
abstract_singleton
*>&
get_plugin_singleton
(
size_t
id
);
static
std
::
atomic
<
abstract_singleton
*>&
get_plugin_singleton
(
size_t
id
);
...
@@ -94,7 +94,7 @@ class singletons {
...
@@ -94,7 +94,7 @@ class singletons {
static
T
*
lazy_get
(
std
::
atomic
<
T
*>&
ptr
,
mutex
&
mtx
,
Factory
f
)
{
static
T
*
lazy_get
(
std
::
atomic
<
T
*>&
ptr
,
mutex
&
mtx
,
Factory
f
)
{
auto
result
=
ptr
.
load
(
std
::
memory_order_acquire
);
auto
result
=
ptr
.
load
(
std
::
memory_order_acquire
);
if
(
result
==
nullptr
)
{
if
(
result
==
nullptr
)
{
lock_guard
<
mutex
>
guard
(
get_mutex
());
lock_guard
<
mutex
>
guard
(
get_
plugin_
mutex
());
result
=
ptr
.
load
(
std
::
memory_order_relaxed
);
result
=
ptr
.
load
(
std
::
memory_order_relaxed
);
if
(
result
==
nullptr
)
{
if
(
result
==
nullptr
)
{
result
=
f
();
result
=
f
();
...
...
libcaf_core/test/spawn.cpp
View file @
b501c326
...
@@ -22,11 +22,11 @@
...
@@ -22,11 +22,11 @@
#include <stack>
#include <stack>
#include <atomic>
#include <atomic>
#include <chrono>
#include <iostream>
#include <iostream>
#include <functional>
#include <functional>
#include "caf/all.hpp"
#include "caf/all.hpp"
#include "caf/chrono.hpp"
using
namespace
std
;
using
namespace
std
;
using
namespace
caf
;
using
namespace
caf
;
...
...
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