FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » I need help for PHP thread code
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
I need help for PHP thread code [message #170551] Mon, 08 November 2010 08:39 Go to previous message
Andreas Otto is currently offline  Andreas Otto
Messages: 6
Registered: October 2010
Karma:
Junior Member
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I have an library able to create threads by its own ...
and I want to use this "threads" to run PHP code on it

The flow is:

1. start PHP
2. external library is listen on socket
3. external library create thread on new request
4. now PHP should be linked to this new thread

currently it is not working ... I use this code...


if (create == MQ_FACTORY_NEW_THREAD) {
// work on NEW thread
tsrm_set_interpreter_context(tsrm_new_interpreter_context());
tsrm_ls = (void ***) ts_resource_ex(0, NULL);
} else {
// work on an already available thread
tsrm_ls = (void ***) tmpl->threadData;
}


the problem is that interpreter global's are not initialized, example:

-> EG(objects_store).object_buckets) = 0x0


I need to run some initialization on a new external thread


Q: is help available?


mfg, Andreas Otto
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJM17dXAAoJEGTcPijNG3/AwZgH/RfSB6g/7hqlw2RBNsyj7fzD
BNw51EbNP7g2wLjBaHe252I/IgMyxr+hvsmuZKGxmPPijfL8ciKXVY+r8jQguNY9
Lt28Q8ebUNqFpmsebM6kFXlleBpP3R2OkjkQtFnTUh8hzk9uFOqMpd38vV0dPVPC
1SrRillsz/yhDMFXyIW7qNgWQb95gQqUOVJMvdL21i4jvpmPjij9wGQgtxRrEToS
vDXxM3FIdef2xDuF30K8yIAutvLe4wpHau1F38R31yafDSLtMLgKUy9xR0RU+EPe
EPd6V+cGThpy6Z1fBAgS1/6cXe2sneVsRNPp0hSpoYbNOOLEhEKzQ5R6yaTuy+4=
=Uq35
-----END PGP SIGNATURE-----
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Illegal variable _files or _env or _get or _post or _cookie or _server or _session or globals passed to script.
Next Topic: how to retrieve xml data from three tables of mysql
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 13 07:04:14 GMT 2024

Total time taken to generate the page: 0.04809 seconds