12.4.1.2 Yielding from foreign predicates
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
      • Foreign Language Interface
        • The Foreign Include File
          • Argument Passing and Control
            • Yielding from foreign predicates
              • PL_yield_address()
              • PL_can_yield()
    • Packages
Availability:C-language interface function
int PL_can_yield(void)
Returns TRUE when called from inside a foreign predicate if the query that (indirectly) calls this foreign predicate can yield using PL_yield_address(). Returns FALSE when either there is no current query or the query cannot yield.