Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

question about os_yield
Hello,

I use os_yield to yield time to windows while my clipper application is
waiting for a key input.
What if I don't want to wait for a key input but simply would like to
wait for a certain amount of time ? Is there a way to completely give
away my timeslices for this amount of time ( a harware timer or a
windows timer ? )

Thanks
Andreas


Report this thread to moderator Post Follow-up to this message
Old Post
Andreas Moroder
01-05-05 08:55 PM


Re: question about os_yield
* Andreas Moroder <Andreas.moroder@[>:

> What if I don't want to wait for a key input but simply would like to wait
> for a certain amount of time ? Is there a way to completely give away my
> timeslices for this amount of time ( a harware timer or a windows timer ?
> )

Have you tried looping over a call to OL_Yield() (I take it that was a typo
in the subject?) while waiting for the desired amount of time to expire?
Like:

,----
| Do While SomeCalculationOfExpiredTime()
|    OL_Yield()
| EndDo
`----

--
Dave Pearson                        |  OSLib - Timeslice release functions.
http://www.davep.org/               |     eg - Norton Guide reader for Linux
.
http://www.davep.org/clipper/       |    weg - Norton Guide reader for Windo
ws.
http://www.davep.org/norton-guides/ | dgscan - DGROUP scanner for Clipper.

Report this thread to moderator Post Follow-up to this message
Old Post
Dave Pearson
01-06-05 08:55 AM


Re: question about os_yield
Dave Pearson schrieb:
> * Andreas Moroder <Andreas.moroder@[>:
>
> 
>
>
> Have you tried looping over a call to OL_Yield() (I take it that was a typ
o
> in the subject?) while waiting for the desired amount of time to expire?
> Like:
>
> ,----
> | Do While SomeCalculationOfExpiredTime()
> |    OL_Yield()
> | EndDo
> `----
>
Hello Dave,

it was a typo.
I solved it with a loop like the loop in your sample and it works.

Thanks
Andreas

Report this thread to moderator Post Follow-up to this message
Old Post
Andreas Moroder
01-07-05 08:55 PM


Re: question about os_yield
* Andreas Moroder <Andreas.moroder@[>:

> What if I don't want to wait for a key input but simply would like to wait
> for a certain amount of time ? Is there a way to completely give away my
> timeslices for this amount of time ( a harware timer or a windows timer ?
> )

Have you tried looping over a call to OL_Yield() (I take it that was a typo
in the subject?) while waiting for the desired amount of time to expire?
Like:

,----
| Do While SomeCalculationOfExpiredTime()
|    OL_Yield()
| EndDo
`----

--
Dave Pearson                        |  OSLib - Timeslice release functions.
http://www.davep.org/               |     eg - Norton Guide reader for Linux
.
http://www.davep.org/clipper/       |    weg - Norton Guide reader for Windo
ws.
http://www.davep.org/norton-guides/ | dgscan - DGROUP scanner for Clipper.

Report this thread to moderator Post Follow-up to this message
Old Post
Dave Pearson
01-11-05 01:55 AM


Re: question about os_yield
Dave Pearson schrieb:
> * Andreas Moroder <Andreas.moroder@[>:
>
> 
>
>
> Have you tried looping over a call to OL_Yield() (I take it that was a typ
o
> in the subject?) while waiting for the desired amount of time to expire?
> Like:
>
> ,----
> | Do While SomeCalculationOfExpiredTime()
> |    OL_Yield()
> | EndDo
> `----
>
Hello Dave,

it was a typo.
I solved it with a loop like the loop in your sample and it works.

Thanks
Andreas

Report this thread to moderator Post Follow-up to this message
Old Post
Andreas Moroder
01-12-05 01:55 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Clipper archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 07:37 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.