From c174e574f1336a4c0c6eaee10ffe79b244665857 Mon Sep 17 00:00:00 2001 From: Mathis Chenuet Date: Mon, 5 Jan 2015 23:10:41 +0100 Subject: [PATCH] ide reformat --- src/com/sheepit/client/Pair.java | 1 + .../sheepit/client/hardware/gpu/CUresult.java | 5 ++ .../client/os/windows/Kernel32Lib.java | 56 +++++++++---------- 3 files changed, 31 insertions(+), 31 deletions(-) diff --git a/src/com/sheepit/client/Pair.java b/src/com/sheepit/client/Pair.java index e8c3d03..47643d0 100644 --- a/src/com/sheepit/client/Pair.java +++ b/src/com/sheepit/client/Pair.java @@ -67,6 +67,7 @@ public class Pair { /** * Convenience method for creating an appropriately typed pair. + * * @param a the first 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 diff --git a/src/com/sheepit/client/hardware/gpu/CUresult.java b/src/com/sheepit/client/hardware/gpu/CUresult.java index c2724b2..91d6db7 100644 --- a/src/com/sheepit/client/hardware/gpu/CUresult.java +++ b/src/com/sheepit/client/hardware/gpu/CUresult.java @@ -73,6 +73,7 @@ public class CUresult { /** * This indicates profiling has not been initialized for this context. * Call cuProfilerInitialize() to resolve this. + * * @deprecated This error return is deprecated as of CUDA 5.0. * It is no longer an error to attempt to enable/disable the * profiling via ::cuProfilerStart or ::cuProfilerStop without @@ -83,6 +84,7 @@ public class CUresult { /** * This indicates profiler has already been started and probably * cuProfilerStart() is incorrectly called. + * * @deprecated This error return is deprecated as of CUDA 5.0. * It is no longer an error to call cuProfilerStart() when * profiling is already enabled. @@ -92,6 +94,7 @@ public class CUresult { /** * This indicates profiler has already been stopped and probably * cuProfilerStop() is incorrectly called. + * * @deprecated This error return is deprecated as of CUDA 5.0. * It is no longer an error to call cuProfilerStop() when * profiling is already disabled. @@ -313,6 +316,7 @@ public class CUresult { /** * This error indicates that a call to ::cuMemPeerRegister is trying to * register already-registered memory. + * * @deprecated This value has been added in CUDA 4.0 RC, * 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 * unregister memory that has not been registered. + * * @deprecated This value has been added in CUDA 4.0 RC, * and removed in CUDA 4.0 RC2 */ diff --git a/src/com/sheepit/client/os/windows/Kernel32Lib.java b/src/com/sheepit/client/os/windows/Kernel32Lib.java index 56a4d2b..51a30d4 100644 --- a/src/com/sheepit/client/os/windows/Kernel32Lib.java +++ b/src/com/sheepit/client/os/windows/Kernel32Lib.java @@ -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. - * - * @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 - * error code is ERROR_ACCESS_DENIED because their access restrictions prevent user-level code from opening them. - * - * If the specified process is a 64-bit process and the caller is a 32-bit process, this function fails and the - * last error code is ERROR_PARTIAL_COPY (299). - * - * @return - * If the function succeeds, it returns an open handle to the specified snapshot. - * - * If the function fails, it returns INVALID_HANDLE_VALUE. To get extended error information, call GetLastError. - * Possible error codes include ERROR_BAD_LENGTH. + * @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 + * error code is ERROR_ACCESS_DENIED because their access restrictions prevent user-level code from opening them. + *

+ * If the specified process is a 64-bit process and the caller is a 32-bit process, this function fails and the + * last error code is ERROR_PARTIAL_COPY (299). + * @return If the function succeeds, it returns an open handle to the specified snapshot. + *

+ * 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); @@ -187,12 +182,11 @@ public interface Kernel32Lib extends Library { * 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 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. - * @return - * 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 - * does not contain process information. + * @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. + * @return 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 + * does not contain process information. */ 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. * * @param hSnapshot A handle to the snapshot returned from a previous call to the CreateToolhelp32Snapshot function. - * @param lppe A pointer to a PROCESSENTRY32 structure. - * @return - * 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 - * does not contain process information. + * @param lppe A pointer to a PROCESSENTRY32 structure. + * @return 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 + * does not contain process information. */ 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. * 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. */ public int SetErrorMode(DWORD uMode);