httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrej van der Zee <andrejvander...@gmail.com>
Subject Re: child_init for threads?
Date Thu, 19 Mar 2009 05:33:03 GMT
Hi,

Thanks, that helps!

Since I am developing my modules in C++, I think I should be using this one:

apr_status_t apr_thread_data_set  	(  	void *   	 data,
		const char *  	key,
		apr_status_t(*)(void *)  	cleanup,
		apr_thread_t *  	thread	
	) 	

If I understand correctly, I can pass my own cleanup function (calling
"delete" to free memory) which is called automatically when the thread
is destroyed by the APR framework. Would that be the way, or am I
still misunderstanding something?

Thank you,
Andrej

Mime
View raw message