iv_init(3)
π iv_init(3) β the ivykis programmer's manual, but make it cute π
okay bestie, so you know how ivykis is a whole event loop library and you're like "how do I even start"? that's this page. welcome to iv_init, iv_deinit, and iv_inited β the holy trinity of turning ivykis on and off. no cap, this is the very first page you read. iykyk. π
β¨ NAME β¨
iv_init, iv_deinit, iv_inited β initialise and deinitialise ivykis π
πΈ SYNOPSIS πΈ
#include <iv.h>
void iv_init(void);
void iv_deinit(void);
int iv_inited(void);
π¦ DESCRIPTION π¦
So iv_init initialises the current thread's ivykis event loop. that's it, that's the vibe. β¨
Every thread that wants to use ivykis must call iv_init before any other ivykis functions are called. like, before anything. no skipping the line, bestie, it's giving "you must be this tall to ride" π
now here's the important lore: the very first call to iv_init in a process must run to completion before other threads are allowed to call iv_init. but! subsequent calls to iv_init can be done concurrently. so the first one is the main character and everyone else has to wait for her to finish her entrance. π
iv_deinit frees all resources allocated by ivykis in this thread, and should be called before this thread exits. yes literally, clean up after yourself, it's the polite thing to do π«Ά
iv_inited returns true if iv_init has been called in this thread. and the second you call iv_deinit, it will return false. she keeps receipts, she knows. π
π SEE ALSO π
and that's the whole page, bestie!! π go forth and initialise responsibly. this was ivykis programmer's manual content, dated 2010-09-05 β yes she's an elder but she still ate and she's still iconic, periodt. ππ§β
π¦ where this page comes from
- alpine 3.22: ivykis-doc 0.43.2-r0 Β· LGPL-2.1-or-later
- alpine 3.23: ivykis-doc 0.43.2-r0 Β· LGPL-2.1-or-later
- alpine 3.24: ivykis-doc 0.43.2-r0 Β· LGPL-2.1-or-later
- debian bookworm: libivykis-dev 0.42.4-1
- debian trixie: libivykis-dev 0.43.2-1+b1
- epel 10: ivykis-devel 0.43.2-2.el10_0 Β· LicenseRef-Callaway-LGPLv2+
- epel 9: ivykis-devel 0.42.4-7.el9 Β· LGPLv2+
- fedora 43: ivykis-devel 0.43.2-4.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: ivykis-devel 0.43.2-4.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: ivykis-devel 0.43.2-5.fc44 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: ivykis-devel 0.43.2-5.fc44 Β· LicenseRef-Callaway-LGPLv2+
- nixpkgs unstable: libivykis 0.43.2
- opensuse-leap 16.0: ivykis-devel 0.43-bp160.1.12 Β· LGPL-2.1-only
- opensuse-leap 16.0: ivykis-devel 0.43-bp160.1.12 Β· LGPL-2.1-only
- opensuse-leap 16.0: ivykis-devel 0.43-bp160.1.12 Β· LGPL-2.1-only
- opensuse-leap 16.0: ivykis-devel 0.43-bp160.1.12 Β· LGPL-2.1-only
- ubuntu jammy: libivykis-dev 0.42.4-1
- ubuntu noble: libivykis-dev 0.43-1build1
- ubuntu questing: libivykis-dev 0.43.2-1
- ubuntu resolute: libivykis-dev 0.43.2-1build1
- ubuntu stonking: libivykis-dev 0.43.2-1build1
- Copyright (C) 2003, 2010 Lennert Buytenhek
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms