Skip to content

Commit

Permalink
Changes following review
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
  • Loading branch information
richardkchapman committed Oct 9, 2024
1 parent c17389d commit e2c6a68
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions roxie/ccd/ccdqueue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1315,8 +1315,10 @@ class RoxieQueue : public CInterface, implements IThreadFactory
void wait()
{
idle++;
CLeavableCriticalBlock b(availCrit, limitWaitingWorkers);
available.wait();
{
CLeavableCriticalBlock b(availCrit, limitWaitingWorkers);
available.wait();
}
idle--;
}

Expand Down Expand Up @@ -1399,16 +1401,17 @@ class CRoxieWorker : public CInterface, implements IPooledThread
}
inline void setPacket(IRoxieQueryPacket *p)
{
Owned<IRoxieQueryPacket> temp(p);
CriticalBlock b(actCrit);
if (p)
{
packet.setown(p);
packet.swap(temp);
packetHeader.copy(p->queryHeader());
}
else
{
packetHeader.clear();
packet.setown(p);
packet.swap(temp);
}
}
inline bool match(RoxiePacketHeader &h)
Expand Down

0 comments on commit e2c6a68

Please sign in to comment.