MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / critical_init

Function critical_init

components/lwp/lwp_syscall.c:4327–4331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4325static struct rt_semaphore critical_lock;
4326
4327static int critical_init(void)
4328{
4329 rt_sem_init(&critical_lock, "ct_lock", 1, RT_IPC_FLAG_FIFO);
4330 return 0;
4331}
4332INIT_DEVICE_EXPORT(critical_init);
4333
4334/**

Callers

nothing calls this directly

Calls 1

rt_sem_initFunction · 0.85

Tested by

no test coverage detected