Version: Unity 6.7 Beta (6000.7)
LanguageEnglish
  • C#

NativeParallelHashMapExtensions.GetUnsafeBucketData

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public static UnsafeParallelHashMapBucketData GetUnsafeBucketData(NativeParallelHashMap<TKey, TValue> container);

Parameters

Parameter Description
container The hash map.

Returns

UnsafeParallelHashMapBucketData A "bucket" view of this hash map.

Description

Returns a "bucket" view of this hash map.

Internally, the elements of a hash map are split into buckets of type UnsafeParallelHashMapBucketData.

With buckets, a job can safely access the elements of a hash map concurrently as long as each individual bucket is accessed only from an individual thread. Effectively, it is not safe to read elements of an individual bucket concurrently, but it is safe to read elements of separate buckets concurrently.


Declaration

public static UnsafeParallelHashMapBucketData GetUnsafeBucketData(NativeParallelMultiHashMap<TKey, TValue> container);

Parameters

Parameter Description
container The multi hash map.

Returns

UnsafeParallelHashMapBucketData A "bucket" view of this multi hash map.

Description

Returns a "bucket" view of this multi hash map.

Internally, the elements of a hash map are split into buckets of type UnsafeParallelHashMapBucketData.

With buckets, a job can safely access the elements of a hash map concurrently as long as each individual bucket is accessed only from an individual thread. Effectively, it is not safe to read elements of an individual bucket concurrently, but it is safe to read elements of separate buckets concurrently.