General Category > Discussion - Drivers
Concurrently using FT_WritePipe and FT_ReadPipe within their own threads
(1/1)
Coderitter GmbH:
1. Is it allowed to have 2 threads, one writing with synchronous FT_WritePipe and the other reading with synchronous FT_ReadPipe?
2. Will synchronous FT_WritePipe in one thread be blocked by synchronous FT_ReadPipe in the other thread and vice verca?
3. Is it allowed to have 2 threads, one writing with asynchronous FT_WritePipe and the other reading with asynchronous FT_ReadPipe?
Coderitter GmbH:
> 1. Is it allowed to have 2 threads, one writing with synchronous FT_WritePipe and the other reading with synchronous FT_ReadPipe?
[Ans] Yes. In fact, write and read should have independent threads.
> 2. Will synchronous FT_WritePipe in one thread be blocked by synchronous FT_ReadPipe in the other thread and vice verca?
[Ans]. No.
> 3. Is it allowed to have 2 threads, one writing with asynchronous FT_WritePipe and the other reading with asynchronous FT_ReadPipe?
[Ans] It is recommended to have independent threads for read and write.
Navigation
[0] Message Index
Go to full version