F.1.13. rascal_init

rrid_t rascal_init(unsigned int policy);

This function initializes the library. Typically, it creates working threads and several threads for library's internal purposes. If initialization fails, the application should stop interacting with the library; all attempts to call functions that perform asynchronous actions will fail.

There is no function to shut the library down; this only happens when the process ceases.

The policy parameter defines the behaviour of the library and can be one of the following:

In a multithreaded environment the application must use its own means to protect the data from being accessed simultaenously by multiple threads.