10.6.2 Pooling Prolog engines (many-to-many)
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
      • Multithreaded applications
        • Multithreaded mixed C and Prolog applications
          • Pooling Prolog engines (many-to-many)
            • PL_create_engine()
            • PL_destroy_engine()
            • PL_set_engine()
    • Packages
Availability:C-language interface function
PL_engine_t PL_create_engine(PL_thread_attr_t *attributes)
Create a new Prolog engine. attributes is described with PL_thread_attach_engine(). Any thread can make this call after PL_initialise() returns success. The returned engine is not attached to any thread and lives until PL_destroy_engine() is used on the returned handle.

In the single-threaded version this call always returns NULL, indicating failure.