Struct NativeParallelHashMap<TKey, TValue>.ParallelWriter
A parallel writer for a NativeParallelHashMap.
Namespace: Unity.Collections
Assembly: solution.dll
Syntax
[NativeContainer]
[NativeContainerIsAtomicWriteOnly]
public struct NativeParallelHashMap<TKey, TValue>.ParallelWriter
  Remarks
Use AsParallelWriter() to create a parallel writer for a NativeParallelHashMap.
Properties
| Name | Description | 
|---|---|
| Capacity | The number of key-value pairs that fit in the current allocation.  | 
      
| ThreadIndex | Returns the index of the current thread.  | 
      
| m_ThreadIndex | **Obsolete. Use ThreadIndex instead.  | 
      
Methods
| Name | Description | 
|---|---|
| TryAdd(TKey, TValue) | Adds a new key-value pair.  |