pthread_mutex_init.c\thread\src - musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/thread/pthread_mutex_init.c
blob: acf45a74687bcf3d8dfb6ac7d4e9107d922b4fe2 (plain) (blame)
1
2
3
4
5
6
7
8
#include "pthread_impl.h"
int pthread_mutex_init(pthread_mutex_t *restrict m, const pthread_mutexattr_t *restrict a)
{
	*m = (pthread_mutex_t){0};
	if (a) m->_m_type = a->__attr;
	return 0;
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月07日 20:30:58 +0000

AltStyle によって変換されたページ (->オリジナル) /