Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 820 -
------------------------------------------------------------------------------
18. Start window task <Main>
------------------------------------------------------------------------------
[Name]
os_strt_wtsk
[Syntax]
#include <oscall.h>
unsigned short os_strt_wtsk( unsigned int wghs ) ;
[Argument]
wghs Global heap size of the window task in kilo-byte.
[Return]
0 Successful.
0x010C No window task exists.
0x011B Not enough memory to start the window task.
[Description]
Starts the window task.
This function starts the window task. Until calling this function,
the window task keeps "start pending" status and is not executed.
Specify the global heap size for the window task in "wghs".
Generally, 100KB is enough size.
This function must be called in the main task.
[Example]
The following program which is called in the main task starts the
window task.
#include <oscall.h>
#include <stdio.h>
void example( void )
{
unsigned short ret ;
ret = os_strt_wtsk( 100 ) ;
if ( ret )
printf( "ERROR, can't start Window TASK.\n" ) ;
else
printf( "Window TASK has started.\n" ) ;
}