Skip to content

Commit bed909f

Browse files
committed
[add][thread]Add api:rt_thread_suspend_any allow suspend other threads.
1 parent 98a12f1 commit bed909f

File tree

5 files changed

+428
-34
lines changed

5 files changed

+428
-34
lines changed
Lines changed: 39 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,42 @@
11
{
2-
"version": "0.2.0",
3-
"configurations": [
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Debug @ Windows",
6+
"type": "cppdbg",
7+
"request": "launch",
8+
"program": "${workspaceRoot}\\rtthread.elf",
9+
"args": [],
10+
"stopAtEntry": true,
11+
"cwd": "${workspaceRoot}",
12+
"environment": [],
13+
"externalConsole": true,
14+
"miDebuggerServerAddress": "localhost:1234",
15+
"serverLaunchTimeout": 2000,
16+
"targetArchitecture": "ARM",
17+
"MIMode": "gdb",
18+
"miDebuggerPath": "arm-none-eabi-gdb.exe",
19+
"customLaunchSetupCommands": [],
20+
"launchCompleteCommand": "exec-run"
21+
},
22+
{
23+
"name": "C/C++ Runner: Debug Session",
24+
"type": "cppdbg",
25+
"request": "launch",
26+
"args": [],
27+
"stopAtEntry": false,
28+
"externalConsole": true,
29+
"cwd": "d:/workspace_work/rt-thread-5.0/bsp/qemu-vexpress-a9/applications",
30+
"program": "d:/workspace_work/rt-thread-5.0/bsp/qemu-vexpress-a9/applications/build/Debug/outDebug",
31+
"MIMode": "gdb",
32+
"miDebuggerPath": "gdb",
33+
"setupCommands": [
434
{
5-
"name": "Debug @ Windows",
6-
"type": "cppdbg",
7-
"request": "launch",
8-
"program": "${workspaceRoot}\\rtthread.elf",
9-
"args": [],
10-
"stopAtEntry": true,
11-
"cwd": "${workspaceRoot}",
12-
"environment": [],
13-
"externalConsole": true,
14-
"miDebuggerServerAddress": "localhost:1234",
15-
"serverLaunchTimeout": 2000,
16-
"targetArchitecture": "ARM",
17-
"MIMode": "gdb",
18-
"miDebuggerPath": "arm-none-eabi-gdb.exe",
19-
"customLaunchSetupCommands": [],
20-
"launchCompleteCommand": "exec-run",
21-
},
22-
]
35+
"description": "Enable pretty-printing for gdb",
36+
"text": "-enable-pretty-printing",
37+
"ignoreFailures": true
38+
}
39+
]
40+
}
41+
]
2342
}

examples/utest/testcases/kernel/SConscript

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ if GetDepend(['UTEST_MAILBOX_TC']):
4444
if GetDepend(['UTEST_THREAD_TC']):
4545
src += ['thread_tc.c']
4646
src += ['thread_overflow_tc.c']
47+
src += ['thread_suspend_tc.c']
4748

4849
if GetDepend(['UTEST_DEVICE_TC']):
4950
src += ['device_tc.c']

0 commit comments

Comments
 (0)