[Xapian-tickets] [Xapian] #770: Enquire::set_time_limit() doesn't work on NetBSD

Xapian nobody at xapian.org
Tue Apr 18 05:07:54 BST 2023


#770: Enquire::set_time_limit() doesn't work on NetBSD
-------------------------+-------------------------------
 Reporter:  Olly Betts   |             Owner:  Olly Betts
     Type:  defect       |            Status:  new
 Priority:  normal       |         Milestone:
Component:  Library API  |           Version:  1.4.7
 Severity:  minor        |        Resolution:
 Keywords:               |        Blocked By:
 Blocking:               |  Operating System:  NetBSD
-------------------------+-------------------------------
Comment (by Olly Betts):

 I worked out the problem on NetBSD - it's that `SIGEV_THREAD` is not
 implemented (still true in NetBSD 9.2).  This information is near the top
 of `man sigevent`.

 I tried a pthread-based implementation, which works on Linux at least.  I
 wonder if using standard C++ thread functionality would be simpler (we'd
 avoid having to mess with probing for pthreads stuff, which looks a bit of
 a mess from https://www.gnu.org/software/autoconf-archive/ax_pthread.html
 - some platforms require a different compiler even!)  It would also give
 us support for non-pthreads platforms (__WIN32__ being the main one).  The
 downside is I think we need `std::jthread` which was added in C++20,
 rather than `std::thread` which is C++11.
-- 
Ticket URL: <https://trac.xapian.org/ticket/770#comment:2>
Xapian <https://xapian.org/>
Xapian


More information about the Xapian-tickets mailing list