[Xapian-tickets] [Xapian] #788: Thread safe move semantics

Xapian nobody at xapian.org
Tue Nov 5 20:54:49 GMT 2019


#788: Thread safe move semantics
-------------------------+-------------------------------
 Reporter:  Kronuz       |             Owner:  olly
     Type:  defect       |            Status:  closed
 Priority:  high         |         Milestone:  1.5.0
Component:  Library API  |           Version:  git master
 Severity:  normal       |        Resolution:  fixed
 Keywords:               |        Blocked By:
 Blocking:               |  Operating System:  All
-------------------------+-------------------------------
Changes (by olly):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 I've pushed d730bbfc0773afec3a8f68f7773199aa81376ba8 to master, which
 addresses this in a simpler way.

 The approach I've taken there is simply to relax the non-NULL requirement
 for the special case of a moved-from `intrusive_ptr_nonnull`.  You can't
 do much with such a moved-from pointer, but it would be unnatural to try
 to anyway.

 Please let me know if there are any issues with this approach for you.

 This code isn't present in 1.4.x, so nothing to consider backporting
 (which is fortunate, as I suspect we couldn't safely).

--
Ticket URL: <https://trac.xapian.org/ticket/788#comment:2>
Xapian <https://xapian.org/>
Xapian



More information about the Xapian-tickets mailing list