mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 01:54:47 +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
|
@ -26,6 +26,7 @@
|
|||
#include "memory/resourceArea.hpp"
|
||||
#include "runtime/os.hpp"
|
||||
#include "runtime/os_perf.hpp"
|
||||
#include "utilities/globalDefinitions.hpp"
|
||||
#include CPU_HEADER(vm_version_ext)
|
||||
|
||||
#ifdef __APPLE__
|
||||
|
@ -72,8 +73,8 @@ class CPUPerformanceInterface::CPUPerformance : public CHeapObj<mtInternal> {
|
|||
int cpu_load_total_process(double* cpu_load);
|
||||
int cpu_loads_process(double* pjvmUserLoad, double* pjvmKernelLoad, double* psystemTotalLoad);
|
||||
|
||||
CPUPerformance(const CPUPerformance& rhs); // no impl
|
||||
CPUPerformance& operator=(const CPUPerformance& rhs); // no impl
|
||||
NONCOPYABLE(CPUPerformance);
|
||||
|
||||
public:
|
||||
CPUPerformance();
|
||||
bool initialize();
|
||||
|
@ -264,8 +265,7 @@ class SystemProcessInterface::SystemProcesses : public CHeapObj<mtInternal> {
|
|||
private:
|
||||
SystemProcesses();
|
||||
bool initialize();
|
||||
SystemProcesses(const SystemProcesses& rhs); // no impl
|
||||
SystemProcesses& operator=(const SystemProcesses& rhs); // no impl
|
||||
NONCOPYABLE(SystemProcesses);
|
||||
~SystemProcesses();
|
||||
|
||||
//information about system processes
|
||||
|
@ -407,8 +407,7 @@ class NetworkPerformanceInterface::NetworkPerformance : public CHeapObj<mtIntern
|
|||
friend class NetworkPerformanceInterface;
|
||||
private:
|
||||
NetworkPerformance();
|
||||
NetworkPerformance(const NetworkPerformance& rhs); // no impl
|
||||
NetworkPerformance& operator=(const NetworkPerformance& rhs); // no impl
|
||||
NONCOPYABLE(NetworkPerformance);
|
||||
bool initialize();
|
||||
~NetworkPerformance();
|
||||
int network_utilization(NetworkInterface** network_interfaces) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue