httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hassan Monfared <hmonfa...@gmail.com>
Subject Writing a monitoring thread in apache filter moudle
Date Sun, 20 Apr 2014 08:05:09 GMT
Dear members,
I have global static array in my module which needs to be updated in every
5 seconds in my apache input filter.
I wrote a monitoring thread with boost::thread which runs in background and
updates the list every 5 seconds.
But this works only when I run apache in single thread mode with apachectl-X
in normal execution of apache my thread doesn't work.
The thread is created in register_hooks() function.

Can anybody help me to figure out my problem ?
Thanks.


Hassan H. Monfared
http://www.linkedin.com/pub/hassan-monfared/55/1b6/33
*I*men  *R*ayaneh  *S*hargh,    +9821-26219590
CEO and technical manager

My Public Key :
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: OpenPGP.js v.1.20130420
Comment: http://openpgpjs.org

xsBNBFKAhwkBB/9vzP/63Qi92K1awWjmzUq9/Ik4ehgkr6wsTzcEu+7RSOM/
bObUKUtt8hEtvXcAuhtQp6SvSZt0QWIsKYYIS4k3FayGpDDyCZkfu7D5gGDg
RoE9aLtVt/FEcECVA7id6jBzWXcw5wPW6edR1Xys3isGoUuXTGN3vuLgAD1z
W5J9sCz+QcxJfzqDvyHT/LKU63tQ9qKqTom33tZeElulPSg3qrUw3MoWkNHH
+W4Igo18JE3TUqFRQnrk9G+PgjJvmGlW9da/RsmOC0v1pbeGD8XHWIc6uj85
6dNK5Kg9QFLnKWOtqAjq0hdkOmfnp972hOeIB61/WQhus0XPqoAQyo1HABEB
AAHNKEhhc3NhbiBILiBNb25mYXJlZCA8aG1vbmZhcmVkQGdtYWlsLmNvbT7C
wFwEEAEIABAFAlKAhwsJEJokPHSAHUdmAADMBwf9GM+NSWGztN85zKSowrE3
cQMkaoWjMJDGCATBAcy2cEMrr3DEzy7RD5yuQWuJ37fyE0lz36QMNjee1ylG
Y3fS7uR95rSJeFjW1/JpQC/q8edmzh1UTwLVJYae0Cp2w9IXY5GH1hCxjL8I
kizaAjh2/MGDmD0+Nd+o2S0sBR9/yubhFQLFLDQfjUJHQjUGoL+kEVPM+nT6
ASscvo05lfjiVS2NeFOKLn2LI1LGCXgtz05hWPLgg6aE6v5VTA2ttF213dFA
s1yUUeIEbDrDPuz5lg/w1CmeTrgMJNxBOCx6WaIKGInDQIQnJumAnwVa34Mw
U7R60ek0jKKeRhbrOAag4w==
=bOWD
-----END PGP PUBLIC KEY BLOCK-----

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message