skipNewList(3)
π skipNewList(3) π
okay bestie, so this one lives in util/skiplist.h and it's literally the birth of a skip list. like, the glow-up origin story. we're creating a whole new skip list from scratch and honestly? iconic. π¦
β¨ NAME β¨
skipNewList β create a skip list. that's it. that's the whole job. she's a maker, a builder, a main character. π
πΈ SYNOPSIS πΈ
#include <util/skiplist.h>
NEOERR *skipNewList(skipList *skip, int threaded, int root, int maxLevel,
int flushLimit, skipFreeValue freeValue, void *ctx);
π ARGUMENTS π
threadedβ set this to true if the list should be thread-safe. like, do you need her to survive being passed around by multiple threads at once? yes? then true. πͺrootβ a performance parameter (peep the discussion above for the whole tea). βmaxLevelβ also a performance parameter (again, see above, iykyk).flushLimitβ the max number of deleted items she keeps cached before she's forced to flush. she has a limit, and she means it.freeValueβ a callback that gets made whenever a value is flushed. so like, every time a value gets yeeted, this runs. π«‘ctxβ the context you pass on over tofreeValue. it's the lil gift bag she carries to the callback. π
π¦ DESCRIPTION π¦
she returns a brand new skip list, periodt. β¨
if <threaded> is true, the list is multi-thread safe. multiple threads, one list, no chaos. slay.
<root> and <maxLevel> are the performance + expected-size girlies β they decide how fast she goes and how big she's planning to be (the discussion above has the full breakdown, go read it bestie).
<flushLimit> is for threaded lists only, and it sets the maximum number of deleted items that get kept cached during concurrent searches. once that limit is hit, new concurrent reads get BLOCKED until all the deleted items are flushed out. so like⦠she stops taking new readers until she finishes cleaning. it's giving spring cleaning energy and honestly, respect.
MT-Level: Safe. π no cap, she's safe for multithreading.
π RETURN VALUE π
None. she returns nothing. she just does. π
β SEE ALSO β
and that's the whole page bestie!! brought to you by ClearSilver, dated 12 July 2007 β an absolute vintage queen, and yes she still ate. ππ mwah, go build some skip lists. π
π¦ where this page comes from
- debian bookworm: clearsilver-dev 0.10.5-4+b5
- debian trixie: clearsilver-dev 0.10.5-6+b1
- epel 10: clearsilver 0.10.5-80.el10_2 Β· Apache-1.1
- epel 9: clearsilver 0.10.5-74.el9 Β· Apache-1.1
- fedora 43: clearsilver 0.10.5-80.fc43 Β· Apache-1.1
- fedora 44: clearsilver 0.10.5-82.fc44 Β· Apache-1.1
- ubuntu jammy: clearsilver-dev 0.10.5-4build3
- ubuntu noble: clearsilver-dev 0.10.5-4build7
- ubuntu questing: clearsilver-dev 0.10.5-6build1
- ubuntu resolute: clearsilver-dev 0.10.5-7
- ubuntu stonking: clearsilver-dev 0.10.5-7build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms