Photon Server API Documentation v5.0RC1

Namespaces | Classes | Functions
ExitGames.Threading Namespace Reference

Namespaces

namespace  CachedSingletonFactory
 

Classes

class  BeforeAfterExecutor
 
class  BlockingQueue
 This class is a Queue<T> wrapper that waits at Dequeue() until an item becomes available. More...
 
class  ExtendedBeforeAfterExecutor
 Executor that can be paused/resumed and that executes actions before and after executing of actions batch More...
 
class  ExtendedFailSafeExecutor
 
class  FailSafeBatchExecutor
 An IExecutor that can be used for a PoolFiber to catch and log or forward exceptions that happen during execution. More...
 
struct  Lock
 This IDisposable uses the Monitor class. It is used to replaces try-finally blocks with "using" statements. More...
 
class  LockTimeoutException
 This exception type is thrown if a timeout occurs when creating an instance of Lock, ReadLock, WriteLock or UpgradeableReadLock. More...
 
struct  ReadLock
 This IDisposable uses the ReaderWriterLockSlim for critical sections that allow one writer and multiple reader. The counter parts are WriteLock and UpgradeableReadLock. It is used to replaces try-finally blocks with "using" statements. More...
 
class  RegisterWaitHandleSafe
 Helps safely unregister waithandles registered with RegisterWaitForSingleObject More...
 
class  SimpleBaseFactory
 A base class for a simple factory using a ReaderWriterLockSlim. More...
 
class  SynchronizedDictionary
 Represents a thread-safe collection of key-value pairs that can be accessed by multiple threads concurrently. If using the Net 4.0 framework you should consider to use the new System.Collections.Concurrent.ConcurrentDictionary. The SynchronizedDictionary provides methods similar to the ConcurrentDictionary to provide a thread safe Dictionary for .NET 3.5 and earlier. More...
 
class  SynchronizedSingletonFactory
 This class is used to create instances that are unique per key in a multi-threaded environment. It uses a ReaderWriterLockSlim for read and write access to the Instances. Instance creations are synchronized with a Monitor on an object that is unique per key. This approach is designed to minimize the impact of long running instance creations on other threads. More...
 
class  UnsynchronizedSingletonFactory
 This class is used to create instances that are unique per key. More...
 
struct  UpgradeableReadLock
 This IDisposable uses the ReaderWriterLockSlim for critical sections that allow one writer and multiple reader. The counter parts are WriteLock and ReadLock. It is used to replaces try-finally blocks with "using" statements. More...
 
struct  WriteLock
 This IDisposable uses the ReaderWriterLockSlim for critical sections that allow one writer and multiple reader. The counter parts are ReadLock and UpgradeableReadLock. It is used to replaces try-finally blocks with "using" statements. More...
 

Functions

delegate bool CreateMethodDelegate< TKey, TValue > (TKey key, out TValue value)
 The delegate that creates new instances. More...
 

Function Documentation

◆ CreateMethodDelegate< TKey, TValue >()

delegate bool ExitGames.Threading.CreateMethodDelegate< TKey, TValue > ( TKey  key,
out TValue  value 
)

The delegate that creates new instances.

Parameters
keyThe key.
valueThe output value.
Template Parameters
TKeyThe type of key.
TValueThe type of value.
Returns
True if a value was created. Otherwise false.