Persist context across threads?
| From: | David Rueter | Date: | Mon, 14 May 2012 18:47:28 +0000 |
| Subject: | Persist context across threads? | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-60586@lists.php.net to get a copy of this message | ||
I am interested in preserving the complete PHP context for a thread (globals, variables, interpreter, etc.--everything) for later access from a different thread.
What would be involved in this? It seems like:
1) Avoid calling ts_free_thread
2) Call tsrm_set_interpreter_context from new thread
Is it safe to assume that the context of a terminated thread will not be destroyed or overwritten as long as ts_free_thread is not called?
Thanks in advance,
David R.