Ticket #16432

enhancement request - per-character microseconds delay

Date d'ouverture: 2009-04-28 10:00 Dernière mise à jour: 2009-04-28 10:00

Rapporteur:
Propriétaire:
(Aucun)
État:
Ouvert
Composant:
Jalon:
(Aucun)
Priorité:
5 - moyen
Sévérité:
5 - moyen
Résolution:
Aucun
Fichier:
Aucun
Vote
Score: 0
No votes
0.0% (0/0)
0.0% (0/0)

Détails

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

Modifier

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