hi - I'm using a thread in C# and .net 4.0 to interact with the receive data portion of a serial driver. I can pass data to the main thread using either a static array or the Invoke method. but I'm looking for the best and/or recommended way to have the main thread wait on new data notification coming from the serial driver. I've implemented this a couple times but I've not been satisfied with the results.
essentially I want to post a message and have it return with data (ie synchronously).