Commit d327495a authored by Dominik Charousset's avatar Dominik Charousset

erased unnecessary fences

parent 5b69972e
......@@ -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)) {
......
......@@ -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
......
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment