Archived

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

Blocking functions and multi threading

Hi All.

I’m writing some software for home use and I’m coming across a bit of an issue.
I’ve got 3 interfaces. Interface A provides functions to get servants of interface B and C. one of my procedures in interface B is a blocking call waiting on something to happen. In a second thread in my client application a call is made to a procedure in interface C. This procedure doesn’t seem to get executed in my server until the function that blocks in interface B returns back to my client application. I’m using Ice just on the local machine, (IPC).

My guess is that this is ICE being thread safe. I’ve written my server in such a way that all interfaces are independent or are thread safe them selves.

Can I stop Ice enforcing thread safeness or allow 2 functions to be called at the same time from different threads? (something to do with a thread pool?)

Any suggestions appreciated.
Nick.

Comments