I’m using: SWI-Prolog version 8.1.19
I want the code to: clear private tabling tables for a thread.
I would like to have a tabled predicate to live through a higher level predicate call. When the call returns/exits, tabling tables shall be abolished/cleared. Another call comes in and it shall start from fresh.
Doc stated that private tables are abolished when the thread exits. In my case, the thread will not exit, instead it will continue to service other request/users/calls. The thread belongs to a thread pool.
What would be the appropriate way to abolish/clear the private table for a thread? I tried untable(predicate/arity) and seemed not working.