S
sharp
I know there are better ways to handle what is described below. I am
just looking so see if it possible to make cross thread API calls.
I have a console app that has a main thread and a worker thread. I
would like for the main thread to be able to make an async call to the
worker thread to put messages on a queue. The worker thread is also
responsible for processing messages that are on the queue when it has
free cycles.
The worker thread also need to be responsible for processing command
that the main thread sends.
Is there anyway that the main thread can make direct calls to the
worker thread?
just looking so see if it possible to make cross thread API calls.
I have a console app that has a main thread and a worker thread. I
would like for the main thread to be able to make an async call to the
worker thread to put messages on a queue. The worker thread is also
responsible for processing messages that are on the queue when it has
free cycles.
The worker thread also need to be responsible for processing command
that the main thread sends.
Is there anyway that the main thread can make direct calls to the
worker thread?