Skip to content

Commit

Permalink
Fix concurrent-queue pop comment (#809)
Browse files Browse the repository at this point in the history
* fix concurrent-queue pop comment

* Update copyright date
  • Loading branch information
kopalja authored Aug 29, 2022
1 parent dce182a commit 01fa141
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/oneapi/tbb/concurrent_queue.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2005-2021 Intel Corporation
Copyright (c) 2005-2022 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -375,12 +375,12 @@ class concurrent_bounded_queue {
}

// Attempt to dequeue an item from head of queue.
/** Does not wait for item to become available.
Returns true if successful; false otherwise. */
bool pop( T& result ) {
return internal_pop(&result);
}

/** Does not wait for item to become available.
Returns true if successful; false otherwise. */
bool try_pop( T& result ) {
return internal_pop_if_present(&result);
}
Expand Down

0 comments on commit 01fa141

Please sign in to comment.