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
d327495a
Commit
d327495a
authored
Jun 18, 2012
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erased unnecessary fences
parent
5b69972e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
11 deletions
+0
-11
src/abstract_event_based_actor.cpp
src/abstract_event_based_actor.cpp
+0
-1
src/context_switching_actor.cpp
src/context_switching_actor.cpp
+0
-1
src/singleton_manager.cpp
src/singleton_manager.cpp
+0
-9
No files found.
src/abstract_event_based_actor.cpp
View file @
d327495a
...
...
@@ -99,7 +99,6 @@ resume_result abstract_event_based_actor::resume(util::fiber*) {
e
=
m_mailbox
.
try_pop
();
if
(
!
e
)
{
m_state
.
store
(
abstract_scheduled_actor
::
about_to_block
);
std
::
atomic_thread_fence
(
std
::
memory_order_seq_cst
);
if
(
m_mailbox
.
can_fetch_more
()
==
false
)
{
switch
(
compare_exchange_state
(
abstract_scheduled_actor
::
about_to_block
,
abstract_scheduled_actor
::
blocked
))
{
...
...
src/context_switching_actor.cpp
View file @
d327495a
...
...
@@ -73,7 +73,6 @@ detail::recursive_queue_node* context_switching_actor::receive_node() {
while
(
e
==
nullptr
)
{
if
(
m_mailbox
.
can_fetch_more
()
==
false
)
{
m_state
.
store
(
abstract_scheduled_actor
::
about_to_block
);
std
::
atomic_thread_fence
(
std
::
memory_order_seq_cst
);
// make sure mailbox is empty
if
(
m_mailbox
.
can_fetch_more
())
{
// someone preempt us => continue
...
...
src/singleton_manager.cpp
View file @
d327495a
...
...
@@ -133,15 +133,6 @@ actor_registry* singleton_manager::get_actor_registry() {
}
uniform_type_info_map
*
singleton_manager
::
get_uniform_type_info_map
()
{
/*
auto result = const_cast<uniform_type_info_map*>(s_uniform_type_info_map);
if (result == nullptr) {
auto tmp = new uniform_type_info_map;
std::atomic_thread_fence(std::memory_order_seq_cst);
}
return result;
*/
return
lazy_get
(
s_uniform_type_info_map
,
true
);
}
...
...
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