mirror of
https://gitcode.com/GitHub_Trending/az/azerothcore-wotlk.git
synced 2026-07-15 04:37:58 +00:00
converted all tabs to 4 spaces
This commit is contained in:
@@ -79,11 +79,11 @@ int DelayExecutor::start(int num_threads, ACE_Method_Request* pre_svc_hook, ACE_
|
||||
|
||||
queue_.queue()->activate();
|
||||
|
||||
// pussywizard:
|
||||
ACE_Based::ThreadPriority tp;
|
||||
int _priority = tp.getPriority(ACE_Based::Highest);
|
||||
if (ACE_Task_Base::activate(THR_NEW_LWP | THR_JOINABLE, num_threads, 0, _priority) == -1)
|
||||
return -1;
|
||||
// pussywizard:
|
||||
ACE_Based::ThreadPriority tp;
|
||||
int _priority = tp.getPriority(ACE_Based::Highest);
|
||||
if (ACE_Task_Base::activate(THR_NEW_LWP | THR_JOINABLE, num_threads, 0, _priority) == -1)
|
||||
return -1;
|
||||
|
||||
//if (ACE_Task_Base::activate(THR_NEW_LWP | THR_JOINABLE | THR_INHERIT_SCHED, num_threads) == -1)
|
||||
// return -1;
|
||||
@@ -98,10 +98,10 @@ int DelayExecutor::execute(ACE_Method_Request* new_req)
|
||||
if (new_req == NULL)
|
||||
return -1;
|
||||
|
||||
// pussywizard: NULL as param for enqueue - wait until the action is possible!
|
||||
// new tasks are added to the queue during map update (schedule_update in MapInstanced::Update)
|
||||
// the queue can be momentarily blocked by map threads constantly waiting for tasks (for (;;) { queue_.dequeue();... } in DelayExecutor::svc())
|
||||
// so just wait a moment, don't drop the task xDddd
|
||||
// pussywizard: NULL as param for enqueue - wait until the action is possible!
|
||||
// new tasks are added to the queue during map update (schedule_update in MapInstanced::Update)
|
||||
// the queue can be momentarily blocked by map threads constantly waiting for tasks (for (;;) { queue_.dequeue();... } in DelayExecutor::svc())
|
||||
// so just wait a moment, don't drop the task xDddd
|
||||
if (queue_.enqueue(new_req, /*(ACE_Time_Value*)&ACE_Time_Value::zero*/ NULL) == -1)
|
||||
{
|
||||
delete new_req;
|
||||
|
||||
Reference in New Issue
Block a user