Search found 5 matches
- Wed Jul 16, 2025 6:36 pm
- Forum: Coding Questions
- Topic: using semaphores in threads and TrySemaphore(Semaphore)
- Replies: 13
- Views: 1002
Re: using semaphores in threads and TrySemaphore(Semaphore)
Thank you all for the very helpful suggestions...some I knew and one or two added to my understanding...in the end the fault was with the serial port reading section of the same thread (after the queues and semaphores - which I have used in FreeRTOS and other systems with great affect) so it was ...
- Mon Jul 14, 2025 5:03 pm
- Forum: Coding Questions
- Topic: using semaphores in threads and TrySemaphore(Semaphore)
- Replies: 13
- Views: 1002
Re: using semaphores in threads and TrySemaphore(Semaphore)
Thank you both for replying - I'm glad of any help on this...
The lists adding and removing are all (producer and consumer) behind mutex and so should be ok...I can't actually check that yet as the semaphore refuses to signal the thread to use the messages on the queue. I can add more messages from ...
The lists adding and removing are all (producer and consumer) behind mutex and so should be ok...I can't actually check that yet as the semaphore refuses to signal the thread to use the messages on the queue. I can add more messages from ...
- Sun Jul 13, 2025 11:38 pm
- Forum: Coding Questions
- Topic: using semaphores in threads and TrySemaphore(Semaphore)
- Replies: 13
- Views: 1002
using semaphores in threads and TrySemaphore(Semaphore)
Hello I'm using PB on windows, the application is user driven by buttons on the UI. These initiate the transmission of JSON serial messages over a serial port (actually emulated USB serial port) selected earlier in the UI flow. The messages cause actions on a remote embedded ESP32 device, that ...
- Wed Nov 12, 2014 3:25 am
- Forum: Coding Questions
- Topic: Serial Port - use in threads
- Replies: 3
- Views: 3559
Re: Serial Port - use in threads
Thank you so much for the kind suggestions
I did work on this a little the last day or so...I made a serial handler that was single char based, but which broke the returned character stream into larger pieces to feed onward - this worked well and cleared several issues I had had.
The thread ...
I did work on this a little the last day or so...I made a serial handler that was single char based, but which broke the returned character stream into larger pieces to feed onward - this worked well and cleared several issues I had had.
The thread ...
- Mon Nov 10, 2014 9:43 pm
- Forum: Coding Questions
- Topic: Serial Port - use in threads
- Replies: 3
- Views: 3559
Serial Port - use in threads
NEWBIE - so my apologies in advance for any mistakes in approach.
I am trying to interact with a remote program via a serial port, basically I thought that putting all the serial port handling in one thread would be a good architectural separation (especially as at first it was mixed into the event ...
I am trying to interact with a remote program via a serial port, basically I thought that putting all the serial port handling in one thread would be a good architectural separation (especially as at first it was mixed into the event ...