MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Add

Method Add

Source/Engine/Threading/ConcurrentBuffer.h:217–220  ·  view source on GitHub ↗

Adds the single item to the collection. Handles automatic buffer resizing. Thread-safe function that can be called from many threads at once. The item to add. The index of the added item.

Source from the content-addressed store, hash-verified

215 /// <param name="item">The item to add.</param>
216 /// <returns>The index of the added item.</returns>
217 FORCE_INLINE int64 Add(const T& item)
218 {
219 return Add(&item, 1);
220 }
221
222 /// <summary>
223 /// Adds the array of items to the collection. Handles automatic buffer resizing. Thread-safe function that can be called from many threads at once.

Callers

nothing calls this directly

Calls 5

EnsureCapacityFunction · 0.85
AddFunction · 0.50
InterlockedAddFunction · 0.50
GetMethod · 0.45
CountMethod · 0.45

Tested by

no test coverage detected