Logo
Explore Help
Sign In
fluencelabs/musl
1
0
Fork 0
You've already forked musl
mirror of https://github.com/fluencelabs/musl synced 2025-06-05 11:01:37 +00:00
Code Issues Projects Releases Wiki Activity
musl/src/thread/pthread_condattr_init.c

8 lines
122 B
C
Raw Normal View History

implement pthread_condattr_* interfaces note that, while the attributes are stored, they are not used in pthread_cond_init yet.
2011-03-07 16:20:12 -05:00
#include "pthread_impl.h"
int pthread_condattr_init(pthread_condattr_t *a)
{
clean up sloppy nested inclusion from pthread_impl.h this mirrors the stdio_impl.h cleanup. one header which is not strictly needed, errno.h, is left in pthread_impl.h, because since pthread functions return their error codes rather than using errno, nearly every single pthread function needs the errno constants. in a few places, rather than bringing in string.h to use memset, the memset was replaced by direct assignment. this seems to generate much better code anyway, and makes many functions which were previously non-leaf functions into leaf functions (possibly eliminating a great deal of bloat on some platforms where non-leaf functions require ugly prologue and/or epilogue).
2012-11-08 17:04:20 -05:00
*a = (pthread_condattr_t){0};
implement pthread_condattr_* interfaces note that, while the attributes are stored, they are not used in pthread_cond_init yet.
2011-03-07 16:20:12 -05:00
return 0;
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 96ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API