- all RAN code, CI code, configuration files, dockerfiles, in CSSL v1.0
- all deployment code (openshift, charts, ancillary files like shell
scripts), in MIT
- documentation in CC-BY-4.0
- exceptions might apply and are listed in NOTICE
- there is a new LICENSES folder with all licenses
- CONTRIBUTIONS.md has been updated accordingly
For automated changes based on OAI PL v1.1:
perl -i~ -0pe 's/\/\*.*Licensed to the OpenAirInterface.*openairinterface.org\n#?/\/*\n * SPDX-License-Identifier: LicenseRef-CSSL-1.0\n/s' **/*.{c,h,cpp}
perl -i~ -0pe 's/\/\*.*Licensed to the OpenAirInterface.*openairinterface.org\n#?/\/*\n * SPDX-License-Identifier: LicenseRef-CSSL-1.0\n/s' **/*.ts
perl -i~ -0pe 's/<!--.*Licensed to the OpenAirInterface.*openairinterface.org\n.*-->/<!-- SPDX-License-Identifier: LicenseRef-CSSL-1.0 -->/s' **/*.xml
The rest (cmake, files with missing license, cmake) manually.
29 lines
1.4 KiB
C
29 lines
1.4 KiB
C
/*
|
|
* SPDX-License-Identifier: LicenseRef-CSSL-1.0
|
|
*/
|
|
|
|
#ifndef PTHREAD_UTILS_H
|
|
#define PTHREAD_UTILS_H
|
|
|
|
#include <pthread.h>
|
|
#define mutexinit(mutex) {int ret=pthread_mutex_init(&mutex,NULL); \
|
|
AssertFatal(ret==0,"ret=%d\n",ret);}
|
|
#define condinit(signal) {int ret=pthread_cond_init(&signal,NULL); \
|
|
AssertFatal(ret==0,"ret=%d\n",ret);}
|
|
#define mutexlock(mutex) {int ret=pthread_mutex_lock(&mutex); \
|
|
AssertFatal(ret==0,"ret=%d\n",ret);}
|
|
#define mutextrylock(mutex) pthread_mutex_trylock(&mutex)
|
|
#define mutexunlock(mutex) {int ret=pthread_mutex_unlock(&mutex); \
|
|
AssertFatal(ret==0,"ret=%d\n",ret);}
|
|
#define condwait(condition, mutex) {int ret=pthread_cond_wait(&condition, &mutex); \
|
|
AssertFatal(ret==0,"ret=%d\n",ret);}
|
|
#define condbroadcast(signal) {int ret=pthread_cond_broadcast(&signal); \
|
|
AssertFatal(ret==0,"ret=%d\n",ret);}
|
|
#define condsignal(signal) {int ret=pthread_cond_signal(&signal); \
|
|
AssertFatal(ret==0,"ret=%d\n",ret);}
|
|
#define mutexdestroy(mutex) { int ret = pthread_mutex_destroy(&mutex);\
|
|
AssertFatal(ret==0,"ret=%d\n",ret);}
|
|
#define conddestroy(condition) { int ret = pthread_cond_destroy(&condition);\
|
|
AssertFatal(ret==0,"ret=%d\n",ret);}
|
|
#endif
|