|
We cannot call any fsf functions before fsf_init. After calling fsf_init, the main will be executing in the background. Then, it can do the negotiations, create the threads and, if needed, activate them via some user-specified synchronization mechanism. It may also create a contract for itself. The second time this function is called it fails.
- Return values:
-
0 | if the system is initialized |
FSF_ERR_SYSTEM_ALREADY_INITIALIZED | if the function has already been called before |
others | It may also return any of the errors that may be returned by the underlying operating system primitives required to perform the FSF system start up |
|