mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-26 16:20:03 +02:00
got rif of unnecessary usleep in lisetning
This commit is contained in:
parent
2a4bd8022e
commit
94667c5dde
@ -1527,9 +1527,6 @@ void UDPStandardImplementation::startListening(){
|
|||||||
tempBuffer = new char[onePacketSize * (packetsPerFrame - 1)]; //store maximum of 1 packets less in a frame
|
tempBuffer = new char[onePacketSize * (packetsPerFrame - 1)]; //store maximum of 1 packets less in a frame
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!activated)
|
|
||||||
usleep(1* 1000 * 1000);
|
|
||||||
|
|
||||||
/* inner loop - loop for each buffer */
|
/* inner loop - loop for each buffer */
|
||||||
//until mask unset (udp sockets shut down by client)
|
//until mask unset (udp sockets shut down by client)
|
||||||
while((1 << ithread) & listeningThreadsMask){
|
while((1 << ithread) & listeningThreadsMask){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user