Mochuelo,
You will want to use the ManagedThreadId on the Thread instance. This
will give you unique values for separate threads, whether or not those
threads are implemented using fibers, or actual different threads.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
(E-Mail Removed)
"Mochuelo" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> Is there a non-obsolete alternative to the obsolete
> GetCurrentThreadID?
>
> I just need an ID (ideally, an int) that will distinguish any two
> threads.
>
> Thanks.
>