mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8234779: Provide idiom for declaring classes noncopyable
Add NONCOPYABLE macro and uses. Reviewed-by: dholmes, pliden, coleenp
This commit is contained in:
parent
3e0a524547
commit
577e87e5b2
37 changed files with 101 additions and 131 deletions
|
@ -28,6 +28,7 @@
|
|||
#include "memory/allocation.hpp"
|
||||
#include "memory/padded.hpp"
|
||||
#include "oops/oopsHierarchy.hpp"
|
||||
#include "utilities/globalDefinitions.hpp"
|
||||
#include "utilities/ostream.hpp"
|
||||
#include "utilities/stack.hpp"
|
||||
|
||||
|
@ -514,9 +515,8 @@ class TaskTerminator : public StackObj {
|
|||
private:
|
||||
ParallelTaskTerminator* _terminator;
|
||||
|
||||
// Noncopyable.
|
||||
TaskTerminator(const TaskTerminator&);
|
||||
TaskTerminator& operator=(const TaskTerminator&);
|
||||
NONCOPYABLE(TaskTerminator);
|
||||
|
||||
public:
|
||||
TaskTerminator(uint n_threads, TaskQueueSetSuper* queue_set);
|
||||
~TaskTerminator();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue