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

Function rt_wlan_workqueue_init

components/drivers/wlan/dev_wlan_workqueue.c:81–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81int rt_wlan_workqueue_init(void)
82{
83 static rt_int8_t _init_flag = 0;
84
85 if (_init_flag == 0)
86 {
87 wlan_workqueue = rt_workqueue_create(RT_WLAN_WORKQUEUE_THREAD_NAME, RT_WLAN_WORKQUEUE_THREAD_SIZE,
88 RT_WLAN_WORKQUEUE_THREAD_PRIO);
89 if (wlan_workqueue == RT_NULL)
90 {
91 LOG_E("F:%s L:%d wlan work queue create failed", __FUNCTION__, __LINE__);
92 return -1;
93 }
94 _init_flag = 1;
95 return 0;
96 }
97 return 0;
98}
99INIT_PREV_EXPORT(rt_wlan_workqueue_init);
100
101#endif

Callers

nothing calls this directly

Calls 1

rt_workqueue_createFunction · 0.85

Tested by

no test coverage detected