Skip to content

Instantly share code, notes, and snippets.

View odecaux's full-sized avatar
🏠
Working from home

Octave Decaux odecaux

🏠
Working from home
View GitHub Profile
@odecaux
odecaux / main.cpp
Last active June 12, 2023 18:22
Single writer RCU
struct rcu_t;
struct rcu_reader_t {
rcu_reader_t *previous;
rcu_reader_t *next;
rcu_t *obj;
c89atomic_uint64 min_epoch;
};
struct rcu_zombie_t {
@Composable
fun HorizontalSliderWithAnchor(
modifier : Modifier = Modifier,
children: @Composable() () -> Unit
) {
var childPositions by state { listOf<ChildPosition>()}
WithConstraints() {
val boxWidth = with(DensityAmbient.current) { constraints.maxWidth.toDp() }