OpenPetra
Free Administration Software for Non-Profits
Ict.Common.ThreadingHelper Class Reference

Helper Class for things that have to do with Multithreading. More...

Static Public Member Functions

static string GetCurrentThreadIdentifier ()
 Returns an identifier that either contains the current Threads' Name and its ManagedThreadId or - in case the current Threads' Name is String.Empty - only its ManagedThreadId. More...
 
static string GetThreadIdentifier (Thread ATheThread)
 Returns an identifier that either contains a Threads' Name and its ManagedThreadId or - in case a Threads' Name is String.Empty - only its ManagedThreadId. More...
 

Detailed Description

Helper Class for things that have to do with Multithreading.

Member Function Documentation

◆ GetCurrentThreadIdentifier()

static string Ict.Common.ThreadingHelper.GetCurrentThreadIdentifier ( )
inlinestatic

Returns an identifier that either contains the current Threads' Name and its ManagedThreadId or - in case the current Threads' Name is String.Empty - only its ManagedThreadId.

Returns
The current Threads' Name and its ManagedThreadId or - in case the current Threads' Name is String.Empty - only its ManagedThreadId.

◆ GetThreadIdentifier()

static string Ict.Common.ThreadingHelper.GetThreadIdentifier ( Thread  ATheThread)
inlinestatic

Returns an identifier that either contains a Threads' Name and its ManagedThreadId or - in case a Threads' Name is String.Empty - only its ManagedThreadId.

Parameters
ATheThreadThread to get the identifier for.
Returns
The Threads' Name and its ManagedThreadId or - in case a Threads' Name is String.Empty - only its ManagedThreadId.

The documentation for this class was generated from the following file: