Skip to content

Commit 328e504

Browse files
committed
Merge pull request PixarAnimationStudios#2462 from brechtvl/onetbb-placement-new
oneTBB: replace TBB utility functions for placement new (Internal change: 2324900)
2 parents b5949b2 + 84233cc commit 328e504

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pxr/base/trace/concurrentList.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class TraceConcurrentList {
111111
while (curNode) {
112112
Node* nodeToDelete = curNode;
113113
curNode = curNode->next;
114-
_alloc.destroy(nodeToDelete);
114+
nodeToDelete->~Node();
115115
_alloc.deallocate(nodeToDelete, 1);
116116
}
117117
}
@@ -130,7 +130,7 @@ class TraceConcurrentList {
130130
/// the newly created item.
131131
iterator Insert() {
132132
Node* newNode = _alloc.allocate(1);
133-
_alloc.construct(newNode);
133+
new(newNode) Node();
134134

135135
// Add the node to the linked list in an atomic manner.
136136
do {

0 commit comments

Comments
 (0)