A category where I will post some of my C# snippets.
These are two scripts that I use to name the Threads, so when I run a ThreadPool.QueueUserWorkItem (for example) I can know the name of the Queue.
using System;
using System.Collections.Generic;
using System.Threading;
namespace GTAMapper.Extensio...Estos dos scripts los uso para darle un nombre a los Threads, así cuando ejecuto un ThreadPool.QueueUserWorkItem (por ejemplo) puedo saber el nombre de la Queue.
using System;
using System.Collections.Generic;
using System.Threading;
namespace GTA...Do you want your ConcurrentQueues to be executed one by one? No problem, with this hard-coded implementation you will get it:
using GTAMapper.Extensions.Threading;
using System;
using System.Collectio...The idea of this utility is that when you store items from another thread, you can access it from the main thread.
Mixing this idea with the Coroutinas, wh...
Some time ago I tried to assign a variable (of bool type) that was declared on the class scope (a global variable) from a different thread, debugging it, it didn’t returned me the value I was expecting, this is way I bring you this utility:
using Sy...