Skip to content

Commit ef94f03

Browse files
committed
checkpt. first note dump on thread
1 parent 8b2ce0f commit ef94f03

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎hackrfpy/README.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,14 @@ h.transmit(433.92e6, 8e6, "signal.iq", txvga=20)
102102

103103
**Transmitting is regulated.** You are responsible for operating within the law and within your equipment's limits.
104104

105+
## Thread safety
106+
107+
A `HackRF` instance is **not** safe to share across threads: methods mutate
108+
per-instance state (`last_params`, the persisted operating mode, logging
109+
wiring) without locks. Instances are cheap -- the constructor touches no
110+
hardware -- so create one per thread, or confine all hackrfpy calls to a
111+
single worker thread.
112+
105113
## Examples
106114

107115
The [main GitHub repository](https://github.com/LC-Linkous/hackRF_python) provides runnable examples, grouped by what they demonstrate.

0 commit comments

Comments
 (0)