xcb_sync_destroy_counter(3)

πŸ“¦
version 1.17.0 Β· 4 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, debian trixie, fedora 43, fedora 44, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– xcb_sync_destroy_counter β€” the XCB Requests girlies' guide πŸ’–

okay so bestie, welcome to xcb_sync_destroy_counter(3), part of the XCB Requests family. yes the NAME section is literally just the function name and a lil dash with nothing after it β€” she's mysterious like that, we respect it πŸŽ€


✨ SYNOPSIS ✨

first thing's first, you gotta invite her in:

#include <xcb/sync.h>

Request function

xcb_void_cookie_t xcb_sync_destroy_counter(xcb_connection_t *conn,
       xcb_sync_counter_t counter);

that's it, that's the whole summoning ritual πŸ’…


🌸 REQUEST ARGUMENTS 🌸

  • conn β€” the XCB connection to X11. she's the link between you and the server, the group chat if you will 🫢
  • counter β€” TODO: NOT YET DOCUMENTED. yeah ngl the docs just left her on read 😭 the XCB authors never filled this one in. we're not gonna pretend otherwise. she's an xcb_sync_counter_t, that's all we know fr fr.

πŸ¦‹ DESCRIPTION πŸ¦‹

so… the DESCRIPTION section is literally empty. not one word. it's giving vibes only, no info. iconic of her honestly πŸ™ˆ the function name does all the talking: you're destroying a sync counter. the rest is between you and the universe ✨


πŸ’œ RETURN VALUE πŸ’œ

she hands you back an xcb_void_cookie_t. that's right β€” a void cookie, so there's no actual value waiting inside, but errors (if any) have to be handled in the event loop, bestie. don't go looking for them anywhere else, they don't come home in the cookie.

and okay, if you're the type who wants to handle errors directly with xcb_request_check instead of doing the whole event loop dance β€” valid! β€” then use xcb_sync_destroy_counter_checked instead. that's the checked twin, she's right there. see xcb-requests(3) for the full tea on how that works πŸ“–


πŸ’€ ERRORS πŸ’€

this request never generates any errors. zero. none. not a single one. she's drama-free, she's unbothered, she could never πŸ’… no cap.

but like β€” still check your cookies properly, that's just good manners πŸŽ€

πŸ‘‘ SEE ALSO πŸ‘‘

(nothing listed here, bestie β€” the SEE ALSO section is empty. we looked. she's a lone wolf 🐺)


🌈 AUTHOR 🌈

Generated from sync.xml. if something's wrong or you wanna make it better, contact xcb@lists.freedesktop.org for corrections and improvements β€” they actually want your feedback, no cap 🫢


okay that's the whole page, you're officially certified in destroying sync counters now, go be the main character of your own X session ⭐

this lil masterpiece came from X Version 11 / libxcb 1.17.0, and yeah the header up top said xcb_sync_destroy_counter(3) β€” love that for her πŸ’– bye bestie!! πŸ¦‹βœ¨