Select one of the symbols to view example projects that use it.
 
Outline
#include <pthread.h>
#include "esp_log.h"
TAG
pthread_setcancelstate(int, int *)
pthread_sigmask(int, const sigset_t *restrict, sigset_t *restrict)
sigset_t
Files
loading...
SourceVuESP-IDF Framework and ExamplesESP-IDFcomponents/newlib/pthread.c
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* * SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 *//* ... */ #include <pthread.h> #include "esp_log.h" const static char *TAG = "esp32_asio_pthread"; int pthread_setcancelstate(int state, int *oldstate) { return 0; }{ ... } // This functions (pthread_sigmask(), sigfillset) are called from ASIO::signal_blocker to temporarily silence signals // Since signals are not yet supported in ESP pthread these functions serve as no-ops // int pthread_sigmask(int how, const sigset_t *restrict set, sigset_t *restrict oset) { ESP_LOGD(TAG, "%s: Signals not supported in ESP pthread", __func__); return 0; }{ ... } int sigfillset(sigset_t *what) { ESP_LOGD(TAG, "%s: Signals not supported in ESP pthread", __func__); if (what != NULL) { *what = ~0; }{...} return 0; }{...} void newlib_include_pthread_impl(void) { // Linker hook, exists for no other purpose }{...}
Details
Show:
from
Types: Columns:
This file uses the notable symbols shown below. Click anywhere in the file to view more details.