Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix transfer_t struct missing #5303

Merged
merged 2 commits into from
Apr 23, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Fix missing transfer_t
  • Loading branch information
NathanFreeman committed Apr 23, 2024
commit 0fbbc44f343ed472052ba90af460b973307da899
2 changes: 1 addition & 1 deletion include/swoole_coroutine_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class Context {
void *private_data_;
bool end_;

#ifdef USE_UCONTEXT
#if defined(USE_UCONTEXT) || defined(SW_USE_THREAD_CONTEXT)
static void context_func(void *arg);
#else
static void context_func(coroutine_transfer_t arg);
Expand Down
2 changes: 1 addition & 1 deletion src/coroutine/context.cc
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ bool Context::swap_out() {
}

void Context::context_func(
#ifdef USE_UCONTEXT
#if defined(USE_UCONTEXT) || defined(SW_USE_THREAD_CONTEXT)
void *arg) {
auto *_this = (Context *) arg;
#else
Expand Down
Loading