File: pthread_stubs.c

package info (click to toggle)
optee-os 4.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 31,560 kB
  • sloc: ansic: 441,914; asm: 12,903; python: 3,719; makefile: 1,676; sh: 238
file content (21 lines) | stat: -rw-r--r-- 416 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// SPDX-License-Identifier: BSD-2-Clause
/*
 * Copyright (c) 2023, Linaro Limited
 */

#include <compiler.h>

#define pthread_mutex_t void

int pthread_mutex_lock(pthread_mutex_t *mutex __unused);
int pthread_mutex_unlock(pthread_mutex_t *mutex __unused);

int __weak pthread_mutex_lock(pthread_mutex_t *mutex __unused)
{
	return 0;
}

int __weak pthread_mutex_unlock(pthread_mutex_t *mutex __unused)
{
	return 0;
}