Skip to content

Commit

Permalink
Fix MSVC compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
Barenboim committed Dec 12, 2024
1 parent 5b6933a commit 52c24c6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/factory/WFTaskFactory.h
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,20 @@ class WFTaskFactory
{
return WFTaskFactory::signal_by_name(cond_name, (void *)0, max);
}

#ifdef _WIN32
static int send_by_name(const std::string& mailbox_name, int msg,
size_t max)
{
return WFTaskFactory::send_by_name(mailbox_name, (void *)msg, max);
}

static int signal_by_name(const std::string& cond_name, int msg,
size_t max)
{
return WFTaskFactory::signal_by_name(cond_name, (void *)msg, max);
}
#endif
};

template<class REQ, class RESP>
Expand Down

0 comments on commit 52c24c6

Please sign in to comment.