TriEngine  v0.0.16
General-purpose engine in C#/OpenGL
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events
TriDevs.TriEngine.Helpers.Threading Class Reference

Provides various helper functions for doing threading operations. More...

Static Public Member Functions

static void SetCurrentThreadName (string name)
 Sets the name of the current thread, does nothing if the thread already has a name. More...
 

Detailed Description

Provides various helper functions for doing threading operations.

Member Function Documentation

static void TriDevs.TriEngine.Helpers.Threading.SetCurrentThreadName ( string  name)
static

Sets the name of the current thread, does nothing if the thread already has a name.

Parameters
nameThe new name for the current thread
39  {
40  // We can't set the name on a thread if it's already set, it would throw an exception
41  // So we have to check if the current name is null before trying to set a new one
42  if (string.IsNullOrEmpty(Thread.CurrentThread.Name))
43  Thread.CurrentThread.Name = name;
44  }

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