diff options
author | Vincent Guittot <vincent.guittot@linaro.org> | 2014-12-10 17:35:19 +0100 |
---|---|---|
committer | Vincent Guittot <vincent.guittot@linaro.org> | 2014-12-15 14:48:14 +0100 |
commit | 9fcfe5cc7bb639e238cfe7fba99ac0dda9c7c286 (patch) | |
tree | 2dff7af1bf72470def48572b0813f4b05202b565 /doc | |
parent | 2562d00e0d0b73d046e9a97ab40758281acc29c9 (diff) |
rt-app: use per instance timer
when we instantiate a thread which contains timer events, the same
timers will be used for all instances and the instance will be woken up
sequentially.
Create a special value named "unique" for the "ref" key of timer. During
the creation of the event, the timer ref value will be replaced by a unique
value so each instance will use its own timer instead of sharing the same timer
Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/examples/example2.json | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/examples/example2.json b/doc/examples/example2.json index a1d9746..ff142c9 100644 --- a/doc/examples/example2.json +++ b/doc/examples/example2.json @@ -8,7 +8,7 @@ "instance" : 1, "loop" : -1, "run" : 1000, - "timer" : { "ref" : "tick", "period" : 10000 } + "timer" : { "ref" : "unique", "period" : 10000 } } } } |