Here is the problem - I have a thread that has a dataset [dsList], this thread then launches another thread that uses this dataset [dsList] in its task and then original thread continues on to clear the dataset [dsList] itself...
Problem is, it looks like the Dataset is Cleared before the spawned thread gets to use the value (all timing), this does not produce the desirable effects...
So, how can I make the main thread WAIT for the spawned thread to finish its work BEFORE it clears the dataset [dsList]?
Any ideas, hints, and help would be greatly appreciated, thanks
BTW - don't mind contention on dsList, I have already taken care of that just not shown above
Problem is, it looks like the Dataset is Cleared before the spawned thread gets to use the value (all timing), this does not produce the desirable effects...
So, how can I make the main thread WAIT for the spawned thread to finish its work BEFORE it clears the dataset [dsList]?
Any ideas, hints, and help would be greatly appreciated, thanks
BTW - don't mind contention on dsList, I have already taken care of that just not shown above