On Thu, Apr 12, 2018 at 11:13 PM, William A Rowe Jr <wr...@rowe-clan.net> wrote: > On Thu, Apr 12, 2018 at 12:56 PM, Ruediger Pluem <rpl...@apache.org> wrote: >> >> >> Other options: >> >> 2. Reverse the order in the ring when apr_reslist_fifo_set is called. >> >> Of course both options require a lock. > > Here's an odd idea. What if the *traversal* were reversed based on the lifo > bit, > and the structure itself remained static? > > 3. Interpret the fifo/lifo flag as an insertion mechanic, so previous fifo > items are returned in original sequence, once all later lifo items are > retrieved.
Oh, I missed your message before replying to RĂ¼diger. I'm afraid it'd be a bit over-engineered for a setting unlikely to change in the lifetime of the reslist, or do you foresee a real need for this?