Ticket #251 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

AvahiThreadedPoll.thread_running is not set.

Reported by: phenics Owned by: lennart
Milestone: Avahi 0.6.24 Component: avahi-common
Keywords: Cc:

Description

I have used AvahiThreadedPoll in my program, but when I use avahi_threaded_poll_stop to stop thread, I found AvahiThreadedPoll.thread_running is always 0, and avahi_threaded_poll_stop return -1 without doing anything. Would you please have a check, Thanks!

Change History

Changed 3 years ago by lennart

I am not sure where your problem is? So you call stop() and then are surprised if subsequently thread_running is 0 and further calls of stop() fail? That's exactly the expected behaviour!

Please elaborate what your problem is!

Changed 3 years ago by phenics

Sorry for the misunderstanding.

My problem is that I want to stop the thread, but thread_running is always 0 even when the thread is running, then the stop function just does nothing. It means avahi_threaded_poll_stop could not stop the thread. I think you may forget to set thread_running to 1 after starting the thread.

Changed 3 years ago by lennart

  • status changed from new to closed
  • resolution set to fixed

Oh, indeed. Should be fixed in rdf0f904.

Changed 3 years ago by lennart

  • milestone set to Avahi 0.6.24
Note: See TracTickets for help on using tickets.