rpc_mgmt_set_server_stack_size- specifies the stack size for server call threads
void rpc_mgmt_set_server_stack_size( unsigned32 thread_stack_size, unsigned32 *status);
- Specifies the stack size, in bytes, for call threads created when the server calls rpc_server_listen(). Select this value based on the stack requirements of the remote procedures offered by the server.
- Returns the status code from this routine. The status code indicates whether the routine completed successfully, or if not, why not.
Possible status codes and their meanings include:
The rpc_mgmt_set_server_stack_size() routine specifies the thread stack size to use when the RPC run-time system creates call threads for executing remote procedure calls. Call threads are created when the server applications calls rpc_server_listen(). The max_calls_exec argument to the rpc_server_listen() routine specifies the number of call threads created.
The server must call this routine before calling the rpc_server_listen() routine. If a server does not call this routine, the default per-thread stack size from the underlying threads package is used.
The thread stack size set by rpc_mgmt_set_server_stack_size() applies only to call threads created when the server subsequently calls rpc_server_listen().
Some thread packages do not support the specification or modification of thread stack sizes.
Please note that the html version of this specification may contain formatting aberrations. The definitive version is available as an electronic publication on CD-ROM from The Open Group.