Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Does NativeMultiHashMap support paralell writes?

Discussion in 'Entity Component System' started by AndesSunset, Apr 3, 2019.

  1. AndesSunset

    AndesSunset

    Joined:
    Jan 28, 2019
    Posts:
    60
    Can I add values to a single NativeMultiHashMap from multiple, concurrent Jobs?

    I previously didn't know that NativeList supports this. So I'm asking in case it's undocumented. Thank you for any info. :)
     
  2. recursive

    recursive

    Joined:
    Jul 12, 2012
    Posts:
    669
    Yes. It has a Concurrent struct you can use for parallel writing.