This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
0
Does Unity take care of race conditions? Multiples Updates writing to
Post Flair (click to view more posts with a particular flair)
Post Body
If multiple updates access a value in a script, will Unity take care of the race condition between them?
I need AI agents to join a queue when it has space. Each AI agent's update function is watching the "spaceInQueue" int, and when it's more than 0, the AI will decrement spaceInQueue and join the queue
If multiple ai agents see spaceInQueue = 0, and the code "spaceInQueue--" runs, will Unity handle the race condition and only let one AI do the decrement?
Thank you
Author
User Suspended
Account Strength
0%
Suspended 3 months ago
Account Age
4 months
Verified Email
Yes
Verified Flair
No
Total Karma
n/a
Link Karma
39
Comment Karma
22
Profile updated: 1 week ago
Posts updated: 3 months ago
Subreddit
Post Details
We try to extract some basic information from the post title. This is not
always successful or accurate, please use your best judgement and compare
these values to the post title and body for confirmation.
- Posted
- 4 months ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/Unity3D/com...