vorner / arc-swap

Support atomic operations on Arc itself

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

liballoc support

vorner opened this issue · comments

It seems the library, or at least most of its functionality, could be implementable on top of liballoc only and it might be useful for someone in that context. Libcore is certainly not enough, as Arc itself comes from liballoc (:thinking: well, the library allows for providing own Arc and plug it in, soo....).

Looking into it more:

  • The usability is questionable. Threads are part of std and this doesn't seem to be of any particular use without threads.
  • It uses thread locals for the debts. So, to actually make it work, a version without them would have to be made (eg. the 0.1 handling of things).

This probably won't happen after all.