Fix comments in svc.h & thread.h

This commit is contained in:
fincs 2018-08-06 17:58:31 +02:00
parent b181d725ac
commit 9fa3873fc9
2 changed files with 13 additions and 16 deletions

View File

@ -544,19 +544,6 @@ Result svcUnmapPhysicalMemory(void *address, u64 size);
///@} ///@}
///@name Process and thread management
///@{
/**
* @brief Configures the pause/unpause status of a thread.
* @return Result code.
* @note Syscall number 0x32.
* @warning This is a privileged syscall. Use \ref envIsSyscallHinted to check if it is available.
*/
Result svcSetThreadActivity(Handle thread, bool paused);
///@}
///@name Resource Limit Management ///@name Resource Limit Management
///@{ ///@{
@ -578,6 +565,18 @@ Result svcGetResourceLimitCurrentValue(u64 *out, Handle reslimit_h, LimitableRes
///@} ///@}
///@name Process and thread management
///@{
/**
* @brief Configures the pause/unpause status of a thread.
* @return Result code.
* @note Syscall number 0x32.
*/
Result svcSetThreadActivity(Handle thread, bool paused);
///@}
///@name Inter-process communication (IPC) ///@name Inter-process communication (IPC)
///@{ ///@{

View File

@ -21,7 +21,7 @@ typedef struct {
* @param entry Entrypoint of the thread. * @param entry Entrypoint of the thread.
* @param arg Argument to pass to the entrypoint. * @param arg Argument to pass to the entrypoint.
* @param stack_sz Stack size (rounded up to page alignment). * @param stack_sz Stack size (rounded up to page alignment).
* @param prio Thread priority (0x00~0x3F); 0x2C is the usual priority of the main thread. * @param prio Thread priority (0x00~0x3F); 0x2C is the usual priority of the main thread, 0x3B is a special priority on cores 0..2 that enables preemptive multithreading (0x3F on core 3).
* @param cpuid ID of the core on which to create the thread (0~3); or -2 to use the default core for the current process. * @param cpuid ID of the core on which to create the thread (0~3); or -2 to use the default core for the current process.
* @return Result code. * @return Result code.
*/ */
@ -54,7 +54,6 @@ Result threadClose(Thread* t);
* @brief Pauses the execution of a thread. * @brief Pauses the execution of a thread.
* @param t Thread information structure. * @param t Thread information structure.
* @return Result code. * @return Result code.
* @warning This is a privileged operation; in normal circumstances applications cannot use this function.
*/ */
Result threadPause(Thread* t); Result threadPause(Thread* t);
@ -62,6 +61,5 @@ Result threadPause(Thread* t);
* @brief Resumes the execution of a thread, after having been paused. * @brief Resumes the execution of a thread, after having been paused.
* @param t Thread information structure. * @param t Thread information structure.
* @return Result code. * @return Result code.
* @warning This is a privileged operation; in normal circumstances applications cannot use this function.
*/ */
Result threadResume(Thread* t); Result threadResume(Thread* t);