ide reformat
This commit is contained in:
committed by
Laurent Clouet
parent
31957c0722
commit
c174e574f1
@@ -67,6 +67,7 @@ public class Pair<F, S> {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Convenience method for creating an appropriately typed pair.
|
* Convenience method for creating an appropriately typed pair.
|
||||||
|
*
|
||||||
* @param a the first object in the Pair
|
* @param a the first object in the Pair
|
||||||
* @param b the second object in the pair
|
* @param b the second object in the pair
|
||||||
* @return a Pair that is templatized with the types of a and b
|
* @return a Pair that is templatized with the types of a and b
|
||||||
|
|||||||
@@ -73,6 +73,7 @@ public class CUresult {
|
|||||||
/**
|
/**
|
||||||
* This indicates profiling has not been initialized for this context.
|
* This indicates profiling has not been initialized for this context.
|
||||||
* Call cuProfilerInitialize() to resolve this.
|
* Call cuProfilerInitialize() to resolve this.
|
||||||
|
*
|
||||||
* @deprecated This error return is deprecated as of CUDA 5.0.
|
* @deprecated This error return is deprecated as of CUDA 5.0.
|
||||||
* It is no longer an error to attempt to enable/disable the
|
* It is no longer an error to attempt to enable/disable the
|
||||||
* profiling via ::cuProfilerStart or ::cuProfilerStop without
|
* profiling via ::cuProfilerStart or ::cuProfilerStop without
|
||||||
@@ -83,6 +84,7 @@ public class CUresult {
|
|||||||
/**
|
/**
|
||||||
* This indicates profiler has already been started and probably
|
* This indicates profiler has already been started and probably
|
||||||
* cuProfilerStart() is incorrectly called.
|
* cuProfilerStart() is incorrectly called.
|
||||||
|
*
|
||||||
* @deprecated This error return is deprecated as of CUDA 5.0.
|
* @deprecated This error return is deprecated as of CUDA 5.0.
|
||||||
* It is no longer an error to call cuProfilerStart() when
|
* It is no longer an error to call cuProfilerStart() when
|
||||||
* profiling is already enabled.
|
* profiling is already enabled.
|
||||||
@@ -92,6 +94,7 @@ public class CUresult {
|
|||||||
/**
|
/**
|
||||||
* This indicates profiler has already been stopped and probably
|
* This indicates profiler has already been stopped and probably
|
||||||
* cuProfilerStop() is incorrectly called.
|
* cuProfilerStop() is incorrectly called.
|
||||||
|
*
|
||||||
* @deprecated This error return is deprecated as of CUDA 5.0.
|
* @deprecated This error return is deprecated as of CUDA 5.0.
|
||||||
* It is no longer an error to call cuProfilerStop() when
|
* It is no longer an error to call cuProfilerStop() when
|
||||||
* profiling is already disabled.
|
* profiling is already disabled.
|
||||||
@@ -313,6 +316,7 @@ public class CUresult {
|
|||||||
/**
|
/**
|
||||||
* This error indicates that a call to ::cuMemPeerRegister is trying to
|
* This error indicates that a call to ::cuMemPeerRegister is trying to
|
||||||
* register already-registered memory.
|
* register already-registered memory.
|
||||||
|
*
|
||||||
* @deprecated This value has been added in CUDA 4.0 RC,
|
* @deprecated This value has been added in CUDA 4.0 RC,
|
||||||
* and removed in CUDA 4.0 RC2
|
* and removed in CUDA 4.0 RC2
|
||||||
*/
|
*/
|
||||||
@@ -321,6 +325,7 @@ public class CUresult {
|
|||||||
/**
|
/**
|
||||||
* This error indicates that a call to ::cuMemPeerUnregister is trying to
|
* This error indicates that a call to ::cuMemPeerUnregister is trying to
|
||||||
* unregister memory that has not been registered.
|
* unregister memory that has not been registered.
|
||||||
|
*
|
||||||
* @deprecated This value has been added in CUDA 4.0 RC,
|
* @deprecated This value has been added in CUDA 4.0 RC,
|
||||||
* and removed in CUDA 4.0 RC2
|
* and removed in CUDA 4.0 RC2
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -159,27 +159,22 @@ public interface Kernel32Lib extends Library {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Takes a snapshot of the specified processes, as well as the heaps, modules, and threads used by these processes.
|
* Takes a snapshot of the specified processes, as well as the heaps, modules, and threads used by these processes.
|
||||||
*
|
|
||||||
* @param dwFlags
|
|
||||||
* The portions of the system to be included in the snapshot.
|
|
||||||
*
|
|
||||||
* @param th32ProcessID
|
|
||||||
* The process identifier of the process to be included in the snapshot. This parameter can be zero to indicate
|
|
||||||
* the current process. This parameter is used when the TH32CS_SNAPHEAPLIST, TH32CS_SNAPMODULE,
|
|
||||||
* TH32CS_SNAPMODULE32, or TH32CS_SNAPALL value is specified. Otherwise, it is ignored and all processes are
|
|
||||||
* included in the snapshot.
|
|
||||||
*
|
*
|
||||||
* If the specified process is the Idle process or one of the CSRSS processes, this function fails and the last
|
* @param dwFlags The portions of the system to be included in the snapshot.
|
||||||
* error code is ERROR_ACCESS_DENIED because their access restrictions prevent user-level code from opening them.
|
* @param th32ProcessID The process identifier of the process to be included in the snapshot. This parameter can be zero to indicate
|
||||||
*
|
* the current process. This parameter is used when the TH32CS_SNAPHEAPLIST, TH32CS_SNAPMODULE,
|
||||||
* If the specified process is a 64-bit process and the caller is a 32-bit process, this function fails and the
|
* TH32CS_SNAPMODULE32, or TH32CS_SNAPALL value is specified. Otherwise, it is ignored and all processes are
|
||||||
* last error code is ERROR_PARTIAL_COPY (299).
|
* included in the snapshot.
|
||||||
*
|
* <p/>
|
||||||
* @return
|
* If the specified process is the Idle process or one of the CSRSS processes, this function fails and the last
|
||||||
* If the function succeeds, it returns an open handle to the specified snapshot.
|
* error code is ERROR_ACCESS_DENIED because their access restrictions prevent user-level code from opening them.
|
||||||
*
|
* <p/>
|
||||||
* If the function fails, it returns INVALID_HANDLE_VALUE. To get extended error information, call GetLastError.
|
* If the specified process is a 64-bit process and the caller is a 32-bit process, this function fails and the
|
||||||
* Possible error codes include ERROR_BAD_LENGTH.
|
* last error code is ERROR_PARTIAL_COPY (299).
|
||||||
|
* @return If the function succeeds, it returns an open handle to the specified snapshot.
|
||||||
|
* <p/>
|
||||||
|
* If the function fails, it returns INVALID_HANDLE_VALUE. To get extended error information, call GetLastError.
|
||||||
|
* Possible error codes include ERROR_BAD_LENGTH.
|
||||||
*/
|
*/
|
||||||
public WinNT.HANDLE CreateToolhelp32Snapshot(WinDef.DWORD dwFlags, WinDef.DWORD th32ProcessID);
|
public WinNT.HANDLE CreateToolhelp32Snapshot(WinDef.DWORD dwFlags, WinDef.DWORD th32ProcessID);
|
||||||
|
|
||||||
@@ -187,12 +182,11 @@ public interface Kernel32Lib extends Library {
|
|||||||
* Retrieves information about the first process encountered in a system snapshot.
|
* Retrieves information about the first process encountered in a system snapshot.
|
||||||
*
|
*
|
||||||
* @param hSnapshot A handle to the snapshot returned from a previous call to the CreateToolhelp32Snapshot function.
|
* @param hSnapshot A handle to the snapshot returned from a previous call to the CreateToolhelp32Snapshot function.
|
||||||
* @param lppe A pointer to a PROCESSENTRY32 structure. It contains process information such as the name of the
|
* @param lppe A pointer to a PROCESSENTRY32 structure. It contains process information such as the name of the
|
||||||
* executable file, the process identifier, and the process identifier of the parent process.
|
* executable file, the process identifier, and the process identifier of the parent process.
|
||||||
* @return
|
* @return Returns TRUE if the first entry of the process list has been copied to the buffer or FALSE otherwise. The
|
||||||
* Returns TRUE if the first entry of the process list has been copied to the buffer or FALSE otherwise. The
|
* ERROR_NO_MORE_FILES error value is returned by the GetLastError function if no processes exist or the snapshot
|
||||||
* ERROR_NO_MORE_FILES error value is returned by the GetLastError function if no processes exist or the snapshot
|
* does not contain process information.
|
||||||
* does not contain process information.
|
|
||||||
*/
|
*/
|
||||||
public boolean Process32First(WinNT.HANDLE hSnapshot, Kernel32Lib.PROCESSENTRY32.ByReference lppe);
|
public boolean Process32First(WinNT.HANDLE hSnapshot, Kernel32Lib.PROCESSENTRY32.ByReference lppe);
|
||||||
|
|
||||||
@@ -200,11 +194,10 @@ public interface Kernel32Lib extends Library {
|
|||||||
* Retrieves information about the next process recorded in a system snapshot.
|
* Retrieves information about the next process recorded in a system snapshot.
|
||||||
*
|
*
|
||||||
* @param hSnapshot A handle to the snapshot returned from a previous call to the CreateToolhelp32Snapshot function.
|
* @param hSnapshot A handle to the snapshot returned from a previous call to the CreateToolhelp32Snapshot function.
|
||||||
* @param lppe A pointer to a PROCESSENTRY32 structure.
|
* @param lppe A pointer to a PROCESSENTRY32 structure.
|
||||||
* @return
|
* @return Returns TRUE if the next entry of the process list has been copied to the buffer or FALSE otherwise. The
|
||||||
* Returns TRUE if the next entry of the process list has been copied to the buffer or FALSE otherwise. The
|
* ERROR_NO_MORE_FILES error value is returned by the GetLastError function if no processes exist or the snapshot
|
||||||
* ERROR_NO_MORE_FILES error value is returned by the GetLastError function if no processes exist or the snapshot
|
* does not contain process information.
|
||||||
* does not contain process information.
|
|
||||||
*/
|
*/
|
||||||
public boolean Process32Next(WinNT.HANDLE hSnapshot, Kernel32Lib.PROCESSENTRY32.ByReference lppe);
|
public boolean Process32Next(WinNT.HANDLE hSnapshot, Kernel32Lib.PROCESSENTRY32.ByReference lppe);
|
||||||
|
|
||||||
@@ -213,6 +206,7 @@ public interface Kernel32Lib extends Library {
|
|||||||
/**
|
/**
|
||||||
* Controls whether the system will handle the specified types of serious errors or whether the process will handle them.
|
* Controls whether the system will handle the specified types of serious errors or whether the process will handle them.
|
||||||
* See: http://msdn.microsoft.com/en-us/library/ms680621%28VS.85%29.aspx
|
* See: http://msdn.microsoft.com/en-us/library/ms680621%28VS.85%29.aspx
|
||||||
|
*
|
||||||
* @param uMode The process error mode. This parameter can be one or more of the following values.
|
* @param uMode The process error mode. This parameter can be one or more of the following values.
|
||||||
*/
|
*/
|
||||||
public int SetErrorMode(DWORD uMode);
|
public int SetErrorMode(DWORD uMode);
|
||||||
|
|||||||
Reference in New Issue
Block a user