mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Queue must be always able to alloc.
This commit is contained in:
+1
-1
@@ -306,7 +306,7 @@ To add an item to the queue a specific code pattern is required:
|
||||
Magic magic;
|
||||
auto token = GetToken();
|
||||
auto& tail = token->get_tail_index();
|
||||
auto item = token->enqueue_begin<tracy::moodycamel::CanAlloc>(magic);
|
||||
auto item = token->enqueue_begin(magic);
|
||||
// Fill item
|
||||
tail.store(magic+1, std::memory_order_release);
|
||||
\end{lstlisting}
|
||||
|
||||
Reference in New Issue
Block a user