Skip to content

Commit

Permalink
packetpool: signal condition within lock
Browse files Browse the repository at this point in the history
Completes: dc40a13 ("packetpool: signal waiter within lock")
  • Loading branch information
victorjulien committed Nov 21, 2023
1 parent edc89ce commit 41c0526
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tmqh-packetpool.c
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@ void PacketPoolReturnPacket(Packet *p)
p->next = pool->return_stack.head;
pool->return_stack.head = p;
pool->return_stack.cnt++;
SCMutexUnlock(&pool->return_stack.mutex);
SCCondSignal(&pool->return_stack.cond);
SCMutexUnlock(&pool->return_stack.mutex);
}
}
}
Expand Down

0 comments on commit 41c0526

Please sign in to comment.