PTHREAD_M...ETPROTOCOL(3P)

πŸ’… PROLOG πŸ’…

okay bestie, real talk before we get into it: this manual page is part of the POSIX Programmer's Manual. πŸŽ€

  • the Linux implementation of this interface may differ β€” so if you're on Linux, go consult the corresponding Linux manual page for the deets, fr fr
  • or, plot twist, the interface may not be implemented on Linux at all 😭

so like… vibe check your platform first, no cap.


✨ NAME ✨

pthread_mutexattr_setprotocol β€” set the protocol attribute of the mutex attributes object (REALTIME THREADS) πŸ§΅πŸ‘‘


🌸 SYNOPSIS 🌸

#include <pthread.h>

int pthread_mutexattr_setprotocol(pthread_mutexattr_t *attr,
    int protocol);

she's short, she's sweet, she takes two args and she's iconic πŸ’–


πŸ¦‹ DESCRIPTION πŸ¦‹

bestie, this one is giving "go read the other page" energy β€” refer to pthread_mutexattr_getprotocol(). πŸ’«

like, that's the whole description. that's it. that's the paragraph. periodt.


okay legal bestie moment, do not skip this part, it's the main character of the fine print:

Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1-2017, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 7, 2018 Edition, Copyright (C) 2018 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html .

🚨 the original IEEE and The Open Group Standard is the referee document β€” so if this page and the Standard ever beef, the Standard wins. no cap.

Any typographical or formatting errors that appear in this page are most likely to have been introduced during the conversion of the source files to man page format. To report such errors, see https://www.kernel.org/doc/man-pages/reporting_bugs.html .


and that's the whole page, bestie 🫢 this one shipped from IEEE/The Open Group, 2017 β€” PTHREAD_M...ETPROTOCOL(3P), and yes the title really is abbreviated like that, we don't make the rules πŸ’€βœ¨ bye ily 🌈

πŸ“¦ where this page comes from