[DeviceDrivers] Add modification under Linux
This commit is contained in:
parent
4ee93b7552
commit
0ad17f462d
|
@ -33,7 +33,7 @@ static void _workqueue_thread_entry(void* parameter)
|
||||||
struct rt_workqueue *rt_workqueue_create(const char* name, rt_uint16_t stack_size, rt_uint8_t priority)
|
struct rt_workqueue *rt_workqueue_create(const char* name, rt_uint16_t stack_size, rt_uint8_t priority)
|
||||||
{
|
{
|
||||||
struct rt_workqueue *queue = RT_NULL;
|
struct rt_workqueue *queue = RT_NULL;
|
||||||
|
|
||||||
queue = (struct rt_workqueue*)RT_KERNEL_MALLOC(sizeof(struct rt_workqueue));
|
queue = (struct rt_workqueue*)RT_KERNEL_MALLOC(sizeof(struct rt_workqueue));
|
||||||
if (queue != RT_NULL)
|
if (queue != RT_NULL)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue