FTDI Community

Please login or register.

Login with username, password and session length.
Advanced Search  

News:

Welcome to the FTDI Community!

Please read our Welcome Note

Technical Support enquires
please contact the team
@ FTDI Support


New Bridgetek Community is now open

Please note that we have created the Bridgetek Community to discuss all Bridgetek products e.g. EVE, MCU.

Please follow this link and create a new user account to get started.

Bridgetek Community

Author Topic: Concurrently using FT_WritePipe and FT_ReadPipe within their own threads  (Read 14874 times)

Coderitter GmbH

  • Newbie
  • *
  • Posts: 4
    • View Profile

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?
Logged

Coderitter GmbH

  • Newbie
  • *
  • Posts: 4
    • View Profile

> 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.
« Last Edit: August 21, 2023, 10:17:26 AM by FTDI Community »
Logged