Re: [libmicrohttpd] Setting thread attributes

2021-01-13 Thread Anaswara Nair
Hi, Is it possible that I can name my MHD thread? For now, what I see is the thread name is "MHD-Single". Is it possible that I can give another name related to my application.. On Sun, 28 Jun 2020, 5:41 pm Anaswara Nair, wrote: > Hi Christian, > > Thanks for your reply. I have few more doubts

Re: [libmicrohttpd] Setting thread attributes

2020-06-28 Thread Christian Grothoff
1: If you use MHD's threaded modes, MHD 'insists' on creating the threads itself. If you use the 'external' event loop (indeed with MHD_NO_FLAG), then MHD runs (only) in the thread you call it from, and only when you call MHD_run(). 2: indeed. -Christian On 6/28/20 2:11 PM, Anaswara Nair wrote:

Re: [libmicrohttpd] Setting thread attributes

2020-06-28 Thread Anaswara Nair
Hi Christian, Thanks for your reply. I have few more doubts based on my understanding on the library. Please correct me if I am wrong. 1. Is it possible to have an external thread with desired attributes and use MHD without creating thread internally? Will it call the callbacks as desired? Will

Re: [libmicrohttpd] Setting thread attributes

2020-06-27 Thread Christian Grothoff
You can theoretically call pthread_self() once MHD calls the application callback inside of a thread. There is currently no way to change attributes for threads during thread creation. Happy hacking! Christian On 6/27/20 9:12 PM, Anaswara Nair wrote: > Hi, > > I am using libmicrohttpd for the f