Skip to content

Commit 84233cc

Browse files
committed
oneTBB: replace TBB utility functions for placement new
1 parent 96f9ec8 commit 84233cc

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)