mirror of
https://github.com/sogou/workflow.git
synced 2026-02-08 01:33:17 +08:00
Merge branch 'master' of https://github.com/sogou/workflow into nossl
This commit is contained in:
@@ -432,7 +432,7 @@ public:
|
||||
return WFTaskFactory::send_by_name(mailbox_name, (void *)msg, max);
|
||||
}
|
||||
|
||||
static int send_by_name(const std::string& mailbox_name, std::nullptr_t msg,
|
||||
static int send_by_name(const std::string& mailbox_name, nullptr_t msg,
|
||||
size_t max)
|
||||
{
|
||||
return WFTaskFactory::send_by_name(mailbox_name, (void *)0, max);
|
||||
@@ -444,7 +444,7 @@ public:
|
||||
return WFTaskFactory::signal_by_name(cond_name, (void *)msg, max);
|
||||
}
|
||||
|
||||
static int signal_by_name(const std::string& cond_name, std::nullptr_t msg,
|
||||
static int signal_by_name(const std::string& cond_name, nullptr_t msg,
|
||||
size_t max)
|
||||
{
|
||||
return WFTaskFactory::signal_by_name(cond_name, (void *)0, max);
|
||||
|
||||
@@ -681,7 +681,7 @@ void WFTaskFactory::reset_go_task(WFGoTask *task, FUNC&& func, ARGS&&... args)
|
||||
|
||||
template<> inline
|
||||
WFGoTask *WFTaskFactory::create_go_task(const std::string& queue_name,
|
||||
std::nullptr_t&& func)
|
||||
nullptr_t&& func)
|
||||
{
|
||||
return new __WFGoTask(WFGlobal::get_exec_queue(queue_name),
|
||||
WFGlobal::get_compute_executor(),
|
||||
@@ -691,7 +691,7 @@ WFGoTask *WFTaskFactory::create_go_task(const std::string& queue_name,
|
||||
template<> inline
|
||||
WFGoTask *WFTaskFactory::create_timedgo_task(time_t seconds, long nanoseconds,
|
||||
const std::string& queue_name,
|
||||
std::nullptr_t&& func)
|
||||
nullptr_t&& func)
|
||||
{
|
||||
return new __WFTimedGoTask(seconds, nanoseconds,
|
||||
WFGlobal::get_exec_queue(queue_name),
|
||||
@@ -701,7 +701,7 @@ WFGoTask *WFTaskFactory::create_timedgo_task(time_t seconds, long nanoseconds,
|
||||
|
||||
template<> inline
|
||||
WFGoTask *WFTaskFactory::create_go_task(ExecQueue *queue, Executor *executor,
|
||||
std::nullptr_t&& func)
|
||||
nullptr_t&& func)
|
||||
{
|
||||
return new __WFGoTask(queue, executor, nullptr);
|
||||
}
|
||||
@@ -709,7 +709,7 @@ WFGoTask *WFTaskFactory::create_go_task(ExecQueue *queue, Executor *executor,
|
||||
template<> inline
|
||||
WFGoTask *WFTaskFactory::create_timedgo_task(time_t seconds, long nanoseconds,
|
||||
ExecQueue *queue, Executor *executor,
|
||||
std::nullptr_t&& func)
|
||||
nullptr_t&& func)
|
||||
{
|
||||
return new __WFTimedGoTask(seconds, nanoseconds, queue, executor, nullptr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user