File: example4.json

package info (click to toggle)
rt-app 1.0-1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye
  • size: 496 kB
  • sloc: ansic: 2,231; python: 260; sh: 129; makefile: 33
file content (20 lines) | stat: -rw-r--r-- 370 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
	/*
	 * Simple use case with 2 threads that runs for 10 ms and wake up each
	 * other until the use case is stopped with Ctrl+C
	 */
	"tasks" : {
		"thread0" : {
			"loop" : -1,
			"run" :     10000,
			"resume" : "thread1",
			"suspend" : "thread0"
		},
		"thread1" : {
			"loop" : -1,
			"run" :     10000,
			"resume" : "thread0",
			"suspend" : "thread1"
		}
	}
}