Commit 2c4a331f authored by neverlord's avatar neverlord

bugfix

parent 1b7c22ac
...@@ -55,6 +55,8 @@ class scheduled_actor : public abstract_actor<local_actor> ...@@ -55,6 +55,8 @@ class scheduled_actor : public abstract_actor<local_actor>
~scheduled_actor(); ~scheduled_actor();
inline util::fiber* fiber_ptr() { return &m_fiber; }
void quit(std::uint32_t reason); void quit(std::uint32_t reason);
inline void enqueue_to_scheduler() inline void enqueue_to_scheduler()
...@@ -68,7 +70,7 @@ class scheduled_actor : public abstract_actor<local_actor> ...@@ -68,7 +70,7 @@ class scheduled_actor : public abstract_actor<local_actor>
inline std::atomic<int>& state() { return m_mailbox.m_state; } inline std::atomic<int>& state() { return m_mailbox.m_state; }
inline int compare_exchange_state(int expected, int new_value) volatile inline int compare_exchange_state(int expected, int new_value)
{ {
int e = expected; int e = expected;
do do
...@@ -145,6 +147,7 @@ void scheduled_actor::execute(scheduled_actor* what, ...@@ -145,6 +147,7 @@ void scheduled_actor::execute(scheduled_actor* what,
exit(7); exit(7);
} }
} }
break;
} }
default: default:
{ {
......
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