Home » U++ Library support » U++ Core » proposal: bool Index::HasUnlinked()
proposal: bool Index::HasUnlinked() [message #41972] |
Sun, 09 February 2014 12:20  |
piotr5
Messages: 107 Registered: November 2005
|
Experienced Member |
|
|
it's just a one-liner. in Index.h add
bool HasUnlinked() const { return unlinked >= 0; }
to HashBase class.
in AIndex:
bool HasUnlinked() const { return hash.HasUnlinked();}
since you can't get reference to Hash.
the reason is that I abuse unlinking as a marker. but also in multi-threading it would be interesting to execute Sweep() in another thread, if needed.
|
|
|
Goto Forum:
Current Time: Tue Apr 29 23:35:49 CEST 2025
Total time taken to generate the page: 0.04323 seconds
|