Tíquete #16432

enhancement request - per-character microseconds delay

: 2009-04-28 10:00 Última Atualização: 2009-04-28 10:00

Relator:
Dono:
(Nenhum)
Estado:
Aberto
Componente:
Marcos:
(Nenhum)
Prioridade:
5 - Medium
Gravidade:
5 - Medium
Resolução:
Nenhum
Arquivo:
Nenhum
Vote
Score: 0
No votes
0.0% (0/0)
0.0% (0/0)

Details

I'd like to be able to set microsecond per-character delays.

I hacked commlib.c to invoke a "micro-sleep" function that I wrote, but without success. I figure that at high baud rates the millisecond resolution of the timers is much too long for per-character, so I interpret delays greater than example 5 milliseconds as microseconds. But my delay seems to spin without returning. Currently it is sending a WM_TIMER message to the invoking thread after the desired microseconds delay (based on the performance counter,) but the main thread is never revived.

I could easily post my changes if someone is willing to review and suggest fixes to make it actually work. Microsoft Vista/Visual Studio.

Seems simple and very useful.

Thanks for a great program! Donald.

Ticket History (1/1 Histories)

2009-04-28 10:00 Updated by: dhlocker
  • New Ticket "enhancement request - per-character microseconds delay" created

Attachment File List

No attachments

Editar

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login