libmicrohttpd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] Setting microhttpd thread names


From: Denis Dowling
Subject: [libmicrohttpd] Setting microhttpd thread names
Date: Wed, 29 Apr 2015 00:12:48 +0000

Hi All,

 

I am using libmicrohttpd in a multithreaded application. There are threads that libmicrohttpd starts, some worker threads and some output threads that block in disk writes.  When debugging an application like this I find it is useful to set names on each of the threads using the pthread_setname_np call. Libmicrohttpd sets all of its thread names to “libmicrohttpd”. I am using select dispatching so there is only one libmicrohttpd thread but given the thread handle is not exposed through the API I have no way of easily changing the thread names.

 

I have a hack working at the moment that sets the thread name in the access handler callback but this only get performed after a request have arrived. Anyone know a clean way to do this? If not is there any interest in some patches to add an API to set the thread names or get access to the libmicrohttpd thread handles?

 

Regards,

Denis

 


The information contained in this message and any attachments is strictly confidential and intended solely for the use of the intended recipient(s). The copyright in this communication belongs to (HSD). This message and any attachments are confidential and may be subject to legal or other professional privilege. Any confidentiality or privilege is not waived or lost because this e-mail has been sent to you by mistake. If you have received this transmission in error, please notify HSD on +61 3 9875 5900 immediately and destroy all copies of this e-mail. The contents of this email message may not be quoted, copied, reproduced or published in part or in whole, without the written authorisation of HSD.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]