المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : [Resolved]Calling to a thread [modified]



C# Programming
11-28-2009, 10:01 PM
I am working with an application that has a background worker thread.
Passing infroamtion back is easy by using ReportProgress.
I can cancel the thread but is there a simple way to make calls to it to pass data? I have looked at message queues but it looks like overkill.
Recommendations?
Thanks.

[Update] System.Collections.Queue will do what I need plus it has a Synchronize method for thread safety.

Join the cool kids - Come fold with us (http://fah-web.stanford.edu/cgi-bin/main.py?qtype=teampage&teamnum=11561)[^ (http://fah-web.stanford.edu/cgi-bin/main.py?qtype=teampage&teamnum=11561)]

modified on Friday, November 27, 2009 7:01 PM