-----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-----
|
|
0
|
|
|
|
Reply
|
Andreas
|
11/8/2010 8:39:51 AM |
|
On 11/8/2010 3:39 AM, Andreas Otto wrote:
> 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
1 - Is this supposed to be php?
2 - What are you talking about?
--
Shelly
|
|
0
|
|
|
|
Reply
|
sheldonlg
|
11/8/2010 12:59:16 PM
|
|
sheldonlg wrote:
> On 11/8/2010 3:39 AM, Andreas Otto wrote:
>> 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
>
> 1 - Is this supposed to be php?
looks like C to me.
> 2 - What are you talking about?
>
He wants to duplicate the way Apache invokes PHP, I suspect.
But using threading rather than forking..
|
|
0
|
|
|
|
Reply
|
The
|
11/8/2010 1:09:03 PM
|
|
On 11/8/2010 8:09 AM, The Natural Philosopher wrote:
> sheldonlg wrote:
>> On 11/8/2010 3:39 AM, Andreas Otto wrote:
>>> 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
>>
>> 1 - Is this supposed to be php?
>
> looks like C to me.
That was a sarcastic question. This is a php group.
>
>> 2 - What are you talking about?
>>
>
> He wants to duplicate the way Apache invokes PHP, I suspect.
>
> But using threading rather than forking..
Again, that was a sarcastic question meaning "if you want help on
something, take the time and trouble to explain your problem so that
others can readily understand what you want".
I guess this once again proves SDNWOTN. (Sarcasm Does Not Work On The
Net --- actually made it into the dictionary of acronyms).
--
Shelly
|
|
0
|
|
|
|
Reply
|
sheldonlg
|
11/8/2010 1:16:43 PM
|
|
On 11/8/2010 8:16 AM, sheldonlg wrote:
> On 11/8/2010 8:09 AM, The Natural Philosopher wrote:
>> sheldonlg wrote:
>>> On 11/8/2010 3:39 AM, Andreas Otto wrote:
>>>> 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
>>>
>>> 1 - Is this supposed to be php?
>>
>> looks like C to me.
>
> That was a sarcastic question. This is a php group.
>
>>
>>> 2 - What are you talking about?
>>>
>>
>> He wants to duplicate the way Apache invokes PHP, I suspect.
>>
>> But using threading rather than forking..
>
> Again, that was a sarcastic question meaning "if you want help on
> something, take the time and trouble to explain your problem so that
> others can readily understand what you want".
>
> I guess this once again proves SDNWOTN. (Sarcasm Does Not Work On The
> Net --- actually made it into the dictionary of acronyms).
>
Don't worry, Sheldon - it works with intelligent people.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
|
|
0
|
|
|
|
Reply
|
Jerry
|
11/8/2010 1:35:35 PM
|
|
On 11/8/2010 3:39 AM, Andreas Otto wrote:
> -----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?
>
>
You're not going to get a lot of help here; most people are PHP
programmers but have not gotten into the C functions to start and/or
extend PHP. There also seems to be very limited information available
on this.
My recommendation would be to try the Zend site - perhaps you can get
some help there.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
|
|
0
|
|
|
|
Reply
|
Jerry
|
11/8/2010 1:51:34 PM
|
|
On 11/8/2010 8:35 AM, Jerry Stuckle wrote:
> On 11/8/2010 8:16 AM, sheldonlg wrote:
>> On 11/8/2010 8:09 AM, The Natural Philosopher wrote:
>>> sheldonlg wrote:
>>>> On 11/8/2010 3:39 AM, Andreas Otto wrote:
>>>>> 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
>>>>
>>>> 1 - Is this supposed to be php?
>>>
>>> looks like C to me.
>>
>> That was a sarcastic question. This is a php group.
>>
>>>
>>>> 2 - What are you talking about?
>>>>
>>>
>>> He wants to duplicate the way Apache invokes PHP, I suspect.
>>>
>>> But using threading rather than forking..
>>
>> Again, that was a sarcastic question meaning "if you want help on
>> something, take the time and trouble to explain your problem so that
>> others can readily understand what you want".
>>
>> I guess this once again proves SDNWOTN. (Sarcasm Does Not Work On The
>> Net --- actually made it into the dictionary of acronyms).
>>
>
> Don't worry, Sheldon - it works with intelligent people.
Please Jerry, lets not have yet another TNP-Jerry trading insults thread.
--
Shelly
|
|
0
|
|
|
|
Reply
|
sheldonlg
|
11/8/2010 1:52:39 PM
|
|
On 11/8/2010 8:52 AM, sheldonlg wrote:
> On 11/8/2010 8:35 AM, Jerry Stuckle wrote:
>> On 11/8/2010 8:16 AM, sheldonlg wrote:
>>> On 11/8/2010 8:09 AM, The Natural Philosopher wrote:
>>>> sheldonlg wrote:
>>>>> On 11/8/2010 3:39 AM, Andreas Otto wrote:
>>>>>> 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
>>>>>
>>>>> 1 - Is this supposed to be php?
>>>>
>>>> looks like C to me.
>>>
>>> That was a sarcastic question. This is a php group.
>>>
>>>>
>>>>> 2 - What are you talking about?
>>>>>
>>>>
>>>> He wants to duplicate the way Apache invokes PHP, I suspect.
>>>>
>>>> But using threading rather than forking..
>>>
>>> Again, that was a sarcastic question meaning "if you want help on
>>> something, take the time and trouble to explain your problem so that
>>> others can readily understand what you want".
>>>
>>> I guess this once again proves SDNWOTN. (Sarcasm Does Not Work On The
>>> Net --- actually made it into the dictionary of acronyms).
>>>
>>
>> Don't worry, Sheldon - it works with intelligent people.
>
> Please Jerry, lets not have yet another TNP-Jerry trading insults thread.
>
It's impossible to insult an idiot, Sheldon. I was just pointing out
that your sarcasm was not wasted.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
|
|
0
|
|
|
|
Reply
|
Jerry
|
11/8/2010 2:02:55 PM
|
|
sheldonlg wrote:
> On 11/8/2010 8:09 AM, The Natural Philosopher wrote:
>> sheldonlg wrote:
>>> On 11/8/2010 3:39 AM, Andreas Otto wrote:
>>>> 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
>>>
>>> 1 - Is this supposed to be php?
>>
>> looks like C to me.
>
> That was a sarcastic question. This is a php group.
>
>>
>>> 2 - What are you talking about?
>>>
>>
>> He wants to duplicate the way Apache invokes PHP, I suspect.
>>
>> But using threading rather than forking..
>
> Again, that was a sarcastic question meaning "if you want help on
> something, take the time and trouble to explain your problem so that
> others can readily understand what you want".
>
> I guess this once again proves SDNWOTN. (Sarcasm Does Not Work On The
> Net --- actually made it into the dictionary of acronyms).
>
Apologies. I assumed you were smarter than Jerry. And had realised
sarcasm was wasted on someone with such a poor command of english.
|
|
0
|
|
|
|
Reply
|
The
|
11/8/2010 2:56:42 PM
|
|
On 11/8/2010 9:56 AM, The Natural Philosopher wrote:
> sheldonlg wrote:
>> On 11/8/2010 8:09 AM, The Natural Philosopher wrote:
>>> sheldonlg wrote:
>>>> On 11/8/2010 3:39 AM, Andreas Otto wrote:
>>>>> 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
>>>>
>>>> 1 - Is this supposed to be php?
>>>
>>> looks like C to me.
>>
>> That was a sarcastic question. This is a php group.
>>
>>>
>>>> 2 - What are you talking about?
>>>>
>>>
>>> He wants to duplicate the way Apache invokes PHP, I suspect.
>>>
>>> But using threading rather than forking..
>>
>> Again, that was a sarcastic question meaning "if you want help on
>> something, take the time and trouble to explain your problem so that
>> others can readily understand what you want".
>>
>> I guess this once again proves SDNWOTN. (Sarcasm Does Not Work On The
>> Net --- actually made it into the dictionary of acronyms).
>>
> Apologies. I assumed you were smarter than Jerry. And had realised
> sarcasm was wasted on someone with such a poor command of english.
(a) you may have a point about the poor command of English.
(b) I won't be baited into any form of personal attack mode.
--
Shelly
|
|
0
|
|
|
|
Reply
|
sheldonlg
|
11/8/2010 4:04:50 PM
|
|
In news:ib8vuh$n28$1@news.eternal-september.org,
Jerry Stuckle <jstucklex@attglobal.net> typed:
> On 11/8/2010 8:52 AM, sheldonlg wrote:
>> On 11/8/2010 8:35 AM, Jerry Stuckle wrote:
>>> On 11/8/2010 8:16 AM, sheldonlg wrote:
>>>> On 11/8/2010 8:09 AM, The Natural Philosopher wrote:
>>>>> sheldonlg wrote:
>>>>>> On 11/8/2010 3:39 AM, Andreas Otto wrote:
>>>>>>> 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
>>>>>>
>>>>>> 1 - Is this supposed to be php?
>>>>>
>>>>> looks like C to me.
>>>>
>>>> That was a sarcastic question. This is a php group.
>>>>
>>>>>
>>>>>> 2 - What are you talking about?
>>>>>>
>>>>>
>>>>> He wants to duplicate the way Apache invokes PHP, I
>>>>> suspect. But using threading rather than forking..
>>>>
>>>> Again, that was a sarcastic question meaning "if you
>>>> want help on something, take the time and trouble to
>>>> explain your problem so that others can readily
>>>> understand what you want". I guess this once again proves SDNWOTN.
>>>> (Sarcasm Does
>>>> Not Work On The Net --- actually made it into the
>>>> dictionary of acronyms).
>>>
>>> Don't worry, Sheldon - it works with intelligent people.
>>
>> Please Jerry, lets not have yet another TNP-Jerry trading
>> insults thread.
>
> It's impossible to insult an idiot, Sheldon. I was just
> pointing out that your sarcasm was not wasted.
You were "just" insultiing a person for no good reason Stukie and you know
it. You're a real wart on the ass of progress for this group.
May you survive a concussion that removes your memory and leaves you
learning disabled.
|
|
0
|
|
|
|
Reply
|
Twayne
|
11/8/2010 4:10:53 PM
|
|
Twayne wrote:
> In news:ib8vuh$n28$1@news.eternal-september.org,
> Jerry Stuckle <jstucklex@attglobal.net> typed:
>> On 11/8/2010 8:52 AM, sheldonlg wrote:
>>> On 11/8/2010 8:35 AM, Jerry Stuckle wrote:
>>>> On 11/8/2010 8:16 AM, sheldonlg wrote:
>>>>> On 11/8/2010 8:09 AM, The Natural Philosopher wrote:
>>>>>> sheldonlg wrote:
>>>>>>> On 11/8/2010 3:39 AM, Andreas Otto wrote:
>>>>>>>> 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
>>>>>>> 1 - Is this supposed to be php?
>>>>>> looks like C to me.
>>>>> That was a sarcastic question. This is a php group.
>>>>>
>>>>>>> 2 - What are you talking about?
>>>>>>>
>>>>>> He wants to duplicate the way Apache invokes PHP, I
>>>>>> suspect. But using threading rather than forking..
>>>>> Again, that was a sarcastic question meaning "if you
>>>>> want help on something, take the time and trouble to
>>>>> explain your problem so that others can readily
>>>>> understand what you want". I guess this once again proves SDNWOTN.
>>>>> (Sarcasm Does
>>>>> Not Work On The Net --- actually made it into the
>>>>> dictionary of acronyms).
>>>> Don't worry, Sheldon - it works with intelligent people.
>>> Please Jerry, lets not have yet another TNP-Jerry trading
>>> insults thread.
>> It's impossible to insult an idiot, Sheldon. I was just
>> pointing out that your sarcasm was not wasted.
>
> You were "just" insultiing a person for no good reason Stukie and you know
> it. You're a real wart on the ass of progress for this group.
> May you survive a concussion that removes your memory and leaves you
> learning disabled.
>
>
I think thats already happened...;-)
|
|
0
|
|
|
|
Reply
|
The
|
11/8/2010 4:33:48 PM
|
|
On 11/8/2010 11:33 AM, The Natural Philosopher wrote:
> Twayne wrote:
>> In news:ib8vuh$n28$1@news.eternal-september.org,
>> Jerry Stuckle <jstucklex@attglobal.net> typed:
>>> On 11/8/2010 8:52 AM, sheldonlg wrote:
>>>> On 11/8/2010 8:35 AM, Jerry Stuckle wrote:
>>>>> On 11/8/2010 8:16 AM, sheldonlg wrote:
>>>>>> On 11/8/2010 8:09 AM, The Natural Philosopher wrote:
>>>>>>> sheldonlg wrote:
>>>>>>>> On 11/8/2010 3:39 AM, Andreas Otto wrote:
>>>>>>>>> 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
>>>>>>>> 1 - Is this supposed to be php?
>>>>>>> looks like C to me.
>>>>>> That was a sarcastic question. This is a php group.
>>>>>>
>>>>>>>> 2 - What are you talking about?
>>>>>>>>
>>>>>>> He wants to duplicate the way Apache invokes PHP, I
>>>>>>> suspect. But using threading rather than forking..
>>>>>> Again, that was a sarcastic question meaning "if you
>>>>>> want help on something, take the time and trouble to
>>>>>> explain your problem so that others can readily
>>>>>> understand what you want". I guess this once again proves SDNWOTN.
>>>>>> (Sarcasm Does
>>>>>> Not Work On The Net --- actually made it into the
>>>>>> dictionary of acronyms).
>>>>> Don't worry, Sheldon - it works with intelligent people.
>>>> Please Jerry, lets not have yet another TNP-Jerry trading
>>>> insults thread.
>>> It's impossible to insult an idiot, Sheldon. I was just
>>> pointing out that your sarcasm was not wasted.
>>
>> You were "just" insultiing a person for no good reason Stukie and you
>> know it. You're a real wart on the ass of progress for this group.
>> May you survive a concussion that removes your memory and leaves you
>> learning disabled.
>>
> I think thats already happened...;-)
Oh well, another thread down the tubes. Bye.
--
Shelly
|
|
0
|
|
|
|
Reply
|
sheldonlg
|
11/8/2010 5:29:06 PM
|
|
In article <ib9c11$foa$1@news.eternal-september.org>,
sheldonlg <sheldonlg@thevillages.net> wrote:
> On 11/8/2010 11:33 AM, The Natural Philosopher wrote:
> > Twayne wrote:
> >> In news:ib8vuh$n28$1@news.eternal-september.org,
> >> Jerry Stuckle <jstucklex@attglobal.net> typed:
> >>> On 11/8/2010 8:52 AM, sheldonlg wrote:
> >>>> On 11/8/2010 8:35 AM, Jerry Stuckle wrote:
> >>>>> On 11/8/2010 8:16 AM, sheldonlg wrote:
> >>>>>> On 11/8/2010 8:09 AM, The Natural Philosopher wrote:
> >>>>>>> sheldonlg wrote:
> >>>>>>>> On 11/8/2010 3:39 AM, Andreas Otto wrote:
[snip]
> Oh well, another thread down the tubes. Bye.
And the fuckers still haven't learnt to snip. Amazing.
--
Tim
"That excessive bail ought not to be required, nor excessive fines imposed,
nor cruel and unusual punishments inflicted" -- Bill of Rights 1689
|
|
0
|
|
|
|
Reply
|
Tim
|
11/8/2010 8:10:13 PM
|
|
Tim Streater wrote:
> In article <ib9c11$foa$1@news.eternal-september.org>,
> sheldonlg <sheldonlg@thevillages.net> wrote:
>
>> On 11/8/2010 11:33 AM, The Natural Philosopher wrote:
>> > Twayne wrote:
>> >> In news:ib8vuh$n28$1@news.eternal-september.org,
>> >> Jerry Stuckle <jstucklex@attglobal.net> typed:
>> >>> On 11/8/2010 8:52 AM, sheldonlg wrote:
>> >>>> On 11/8/2010 8:35 AM, Jerry Stuckle wrote:
>> >>>>> On 11/8/2010 8:16 AM, sheldonlg wrote:
>> >>>>>> On 11/8/2010 8:09 AM, The Natural Philosopher wrote:
>> >>>>>>> sheldonlg wrote:
>> >>>>>>>> On 11/8/2010 3:39 AM, Andreas Otto wrote:
>
> [snip]
>
>> Oh well, another thread down the tubes. Bye.
>
> And the fuckers still haven't learnt to snip. Amazing.
>
Or to use a killfile. Sigh.
I wouldn't have seen any of it if someone ELSE hadn't responded to
Jerry's trolling.
If every one did the same, it might be a place to discuss PHP again.
|
|
0
|
|
|
|
Reply
|
The
|
11/8/2010 8:35:20 PM
|
|
The Natural Philosopher wrote:
> I wouldn't have seen any of it if someone ELSE hadn't responded to
> Jerry's trolling.
I dunno, it was kind of amusing watching from the sidelines (since I
also plonked Jerry a while back).
> If every one did the same, it might be a place to discuss PHP again.
Agreed.
|
|
0
|
|
|
|
Reply
|
Robert
|
11/8/2010 9:55:45 PM
|
|
..oO(sheldonlg)
>Oh well, another thread down the tubes. Bye.
Good newsreaders allow to filter subthreads. ;-)
Micha
|
|
0
|
|
|
|
Reply
|
Michael
|
11/8/2010 11:14:42 PM
|
|
On 11/8/2010 6:14 PM, Michael Fesser wrote:
> .oO(sheldonlg)
>
>> Oh well, another thread down the tubes. Bye.
>
> Good newsreaders allow to filter subthreads. ;-)
>
> Micha
The problem with killfiling any of the participants here is that
occasionally I wander into a thread and actually _learn_ something. I
don't want to lose that, so I just skip over the thread when it turns to
insult trading.
--
Shelly
|
|
0
|
|
|
|
Reply
|
sheldonlg
|
11/9/2010 12:36:03 AM
|
|
|
17 Replies
1597 Views
(page loaded in 0.584 seconds)
Similiar Articles: RCGA (Real Code Genetic Algorithm) - comp.soft-sys.matlab ...Hi all, I'm new in matlab and i need help ... I'm working on the implementation of Real Code Genetic Algorithm ... com/group/comp.soft-sys.matlab/browse_thread/thread/30 ... ZigBee CC2500 interface with AT89C2051 Code - comp.arch.embedded ...Embedded Code Discussion Threads Please help me to interface ZigBee CC2500 with AT89C2051 Code. I need the source code for the controller ... hamming code - comp.soft-sys.matlabHi I am new here and I need help as soon as possible. anybody can give information how to create hamming code(5,2) by ... sys ..... original posting in this thread ... matlab code for sigma filter to remove speackle noise - comp.soft ...Other links that may help: http://www.bing.com ... I need to remove the speackle noise from a ... for sigma filter to remove speackle noise Thread Subject: matlab code for ... backpropagation code - comp.soft-sys.matlabcan i get the code of ... backpropagation code for prediction. - comp.soft-sys.matlab ... HELLO, I am ganesh sharma IIT guwahati student.I need help ... Thread Subject ... Writing Assembly Code in x64 - comp.lang.asm.x86... this: http://www.masm32.com/board/index.php ... let me know ur comments after seeing the code. I need more one help ... Previously in the thread, Mazegen have already ... How to estimate angle of arrival for lte in matlab ? - comp.soft ...Hi i need to estimate aoa for lte..... i need help ... HI DEAR THANK YOU VERY MUCH FOR UR REPLY TO MY THREAD ... in this group is likely to simply give you the code ... Need help with Active Home macro - comp.home.automationThis looks like it should do what I need. How do I access the VM code in ... example you initially provided in this thread ... Software to CM11A - comp.home.automation Need help ... Need help with using org.apache.log4j pakages (LogManager) - comp ...... it, itgives me this following error:Exception in thread ... 2.14\dist\lib\log4j-1.2.14.jar> > And my java code has ... Need help with using org.apache.log4j pakages (LogManager ... Question: I need java codes to check "username" and "password ...Can someone help me to find codes that can i check "un"and "pw" from ... html http://www.developer.com/java/data/article.php/3417381 Step 2: look up the things you need ... Need Matlab code for Constrained Particle Swarm Optimization ...Please help me. > > what have YOU done so far to solve YOUR ... - Newsreader ... Thread Subject: Need Matlab code for Constrained Particle Swarm Optimization Reading and modifying XML file using MATLAB - comp.soft-sys.matlab ...Inserting new line of code between existing XML code - comp.soft ... ... never did something with reading/modifying file before, I really need help (before making this thread ... How use OpenGL window seperate thread? - comp.graphics.api.opengl ...But if I move all of that code into a seperate thread, and run it ... between different threads - I just need all the window/opengl stuff to be in a aseperate thread. Help! Need help figuring out how to write the script for this problem ...TEST and JS Question - comp.lang.asm.x86... help, here's the bit of code I need help ... Thread Subject: Need help figuring out how to write the script for this problem. Developing a satellite communication simulator with MATLAB - comp ...i need help to develop a ... will be a great help , this is my project n i really wanna do it, i just need the start then on i will write my own code ... programming.threads ... Flash Site "contact.php"&"contact.asp",to send Email. Code Gurus ...Flash Site "contact.php"&"contact.asp",to send Email. Code Gurus, I Need Help! ... Digg this Thread! Add Thread to del ... Hosting side Optoins and .php and .asp code do ... Need help loading video/x-flv with PHP... speaking, be a PHP issue, but I'm hoping someone here can help. ... Thread: Need help loading video/x-flv with PHP ... PHP Code: 7/30/2012 9:11:47 AM
|