StoreProcess::Fork
- Class for a StoreProcess that is run in a fork.
This class is used in the same way as the StoreProcess-class. Please see the StoreProcess-class for more info.
Class for a StoreProcess that is run in a fork.
The class is used in the same way as the StoreProcess-class. Please seee the StoreProcess-class for more information.
Instantiates the constructor of the class.
It is inherited from the StoreProcess-class and takes the same parameteres (see the StoreProcess-class for more information).
In addition it takes the parameter:
funcptr Reference to a function to run in the fork being executed. The parameters is required. If not specified it will run a no-do dummy process (see the mydonothing()-method).
Returns the StoreProcess-instance.
Starts the fork'ed process and runs the function specified as the funcptr-parameter to the new()-method.
This method is inherited from the StoreProcess-class. Please see the StoreProcess-class for more information.
The method is not to be called by the user and is for internal use.
Cleans up after the fork'ed process when it ends.
This method is inherited from the StoreProcess-class. Please see the StoreProcess-class for more information.
The method is for internal use and is not to be called by the user.
Stops the fork'ed function-process running.
This method is inherited from the StoreProcess-class. Please see the StoreProcess-class for more information.
The method is for internal use and is not to be called by the user.
Does nothing. Placeholder for a function-reference.
Does nothing and directly writes the exitcode of the function before exiting itself. It is mean as a replacement for a missing funcptr-option in the new()-method (see the new()-method for more information).
Returns the exitcode of the function invoked (and are taken as the exitcode of the process). If successful return 0, if not > 0.
The method is for internal use and is not to be called by the user.