I came across this problem recently which left me puzzled. Any help would be greatly appreciated! The problem is as follows:
An adaptor class takes subscription requests for live prices from an application and forces them onto a single thread. The creation of the price feed, subscription and unsubscription must happen on the SAME thread for the price feed to work; method calls on the adaptor are not guaranteed to be on the same thread. Assume that only open connection is open for the application.