• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# lws minimal secure streams threads
2
3This application creates a thread and calls `lws_cancel_service()`
4at 10Hz.
5
6It creates a Secure Stream and checks that it is getting the
7`LWSSSCS_EVENT_WAIT_CANCELLED` state for each `lws_cancel_service()`.
8
9It also demonstrates how to protect a shared data area between the
10thread(s) and the lws event loop thread to put data there that
11describes what the thread wants the service loop to do.
12
13It exits after 3s with a 0 return code if the SS saw the expected
14amount of messages.
15
16## build
17
18```
19 $ cmake . && make
20```
21
22## usage
23
24Commandline option|Meaning
25---|---
26-d <loglevel>|Debug verbosity in decimal, eg, -d15
27
28