projects
/
simavr
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
make uart_pty threadsafe
[simavr]
/
examples
/
parts
/
uart_pty.h
diff --git
a/examples/parts/uart_pty.h
b/examples/parts/uart_pty.h
index
c6e0603
..
6f82cf1
100644
(file)
--- a/
examples/parts/uart_pty.h
+++ b/
examples/parts/uart_pty.h
@@
-50,6
+50,7
@@
typedef struct uart_pty_t {
struct avr_t *avr; // keep it around so we can pause it
pthread_t thread;
+ pthread_mutex_t lock;
int xon;
union {