Preventing multiple events calling a running thread
Posted on 1998-12-16
I am designing a server application using TCP/IP (TServerSocket). An event is generated each time a request is recieved. I have a que attached to one thread, when a message is added to the Que the que needs to call the thread if is not already running. How do I do this without using flags (serverbusy true/false) and ensure that the event ends while the thread is running?.