commit | 1d5546c05d30299377c5fd4035216669e2f5a24d | [log] [tgz] |
---|---|---|
author | Shawn O. Pearce <sop@google.com> | Tue May 31 17:08:12 2011 -0700 |
committer | Shawn O. Pearce <sop@google.com> | Thu Jun 02 07:48:00 2011 -0700 |
tree | 1cc51c40cb8175a85659a4d0650faaa7b9ed35ad | |
parent | 2087b0595ecf7a8bbaa6b7cdb5dca2989cedf231 [diff] |
Make PrologControl abstract for better embedding Embedders can now subclass PrologControl and use a callback model to receive results from the evaluation, rather than polling a queue supplied by a background thread. This allows an embedder to buffer results into their own data structure during the success() method, avoiding the need to allocate, start, and synchronize with a background thread that manages the interpreter state.