Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions iocore/eventsystem/Continuation.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,6 @@

#include "I_EventSystem.h"
#include "I_Continuation.h"
#include "I_EThread.h"

int
Continuation::handleEvent(int event, void *data)
{
// If there is a lock, we must be holding it on entry
ink_release_assert(!mutex || mutex->thread_holding == this_ethread());
return (this->*handler)(event, data);
}

int
Continuation::dispatchEvent(int event, void *data)
Expand Down
11 changes: 10 additions & 1 deletion iocore/eventsystem/I_Continuation.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ class ContinuationQueue;
class Processor;
class ProxyMutex;
class EThread;
class Event;

extern EThread *this_ethread();

//////////////////////////////////////////////////////////////////////////////
//
Expand Down Expand Up @@ -154,7 +157,13 @@ class Continuation : private force_VFPT_to_top
@return State machine and processor specific return code.

*/
int handleEvent(int event = CONTINUATION_EVENT_NONE, void *data = nullptr);
TS_INLINE int
handleEvent(int event = CONTINUATION_EVENT_NONE, void *data = nullptr)
{
// If there is a lock, we must be holding it on entry
ink_release_assert(!mutex || mutex->thread_holding == this_ethread());
return (this->*handler)(event, data);
}

/**
Receives the event code and data for an Event.
Expand Down