Archived

This forum has been archived. Please start a new discussion on GitHub.

Number of connection in current thread

How to determinate number of connection in current thread on server?

For example, I use
properties->setProperty("Ice.ThreadPool.Server.Size","10");
14 clients connect to this server
In every thread I must call ::CoInitialize(NULL);
When client disconnect, I whant to know - is another client connect in this thread?
If no - I call ::CoUninitialize();

Comments

  • marc
    marc Florida
    I'm afraid I don't understand the question. Clients are not connected to specific threads. If a server receives a request from a client, the server will use any thread from the thread pool that is not already in use for another request.