From 70cb4d30ebdaeb6f6b4b68d47356bc5d6865e10a Mon Sep 17 00:00:00 2001 From: Anoop Saldanha Date: Mon, 25 Mar 2013 15:21:09 +0530 Subject: [PATCH] Add a usleep to CudaBuffer culling process. Would lead to a situation where the thread wouldn't care to yield to others." --- src/util-cuda-buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util-cuda-buffer.c b/src/util-cuda-buffer.c index f94b3dcca1..d332470d3e 100644 --- a/src/util-cuda-buffer.c +++ b/src/util-cuda-buffer.c @@ -155,7 +155,7 @@ void CudaBufferCullCompletedSlices(CudaBufferData *cb_data, SCLogDebug("CudaBuffer waiting on an item to finish"); if (buffer_reset) { while (!SC_ATOMIC_GET(slice_temp->done)) - ; + usleep(1); } else { break; }