![](/images/new-backgrounds/1152995/15299543x1.webp)
Using the WebQoS API
wq_set_proc_cls()
wq_set_proc_cls()
Sets the process group of the current process. For a multithreaded process, all threads are set to the same specified process group.
A process is only allowed to change its process group to the value(s) specified in the file /etc/opt/webqos/svccls.allow. By default, a process cannot change its process group. Refer to the svccls.allow file for an explanation of how to configure this file. A copy of this file can be found in Appendix A , “Sample Programs, Configuration, and Header Files,” on page 33.
Synopsis
#include <webqosapi.h>
int wq_set_proc_cls(uint32_t class, uint32_t scope, int *errorcode)
Link using
Arguments
class | The process group to which the application sets the |
| process to be in. Refer to “class Values” for a list of |
| process group values. |
scope | Specifies scope of the function, which can be the entire |
| process or a thread. Currently, only the entire process |
| can be set (using WQ_SCOPE_PROCESS). For more |
| information about multithreaded applications, refer to |
| “Multithreaded Applications” in this section. |
errorcode | The error code set when the return value is |
| “Errors” in this section for a list of error codes. |
22 | Chapter 2 |