English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. C/C++

 
 
Thread Tools
Old 26 May 2013, 13:04   #1
Vot
Registered User
 
Join Date: Aug 2012
Location: Australia
Posts: 651
StormC V4 sleep() implementation

Hi,

I tried storm c v4 for the first time, I went to use the sleep function via the unistd.h include however it seems their is no implementation of it in the libraries. i.e linker error when compiling..

If there is no implementation of it. What approach would I take to create a sleep(secs or microsecs)

Vot..

Last edited by Vot; 26 May 2013 at 13:38.
Vot is offline  
Old 26 May 2013, 13:19   #2
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 7,030
Use dos.library/Delay() if you need to wait a rather long period or timer.device for short periods.
thomas is offline  
Old 26 May 2013, 13:39   #3
Vot
Registered User
 
Join Date: Aug 2012
Location: Australia
Posts: 651
Quote:
Originally Posted by thomas View Post
Use dos.library/Delay() if you need to wait a rather long period or timer.device for short periods.
thanks I did search the sdk for sleep., never throught of delay.. lol.. I did think that timer.device was possible but thought something else must be easier..
Vot is offline  
Old 26 May 2013, 16:23   #4
Vot
Registered User
 
Join Date: Aug 2012
Location: Australia
Posts: 651
Quote:
Originally Posted by thomas View Post
Use dos.library/Delay() if you need to wait a rather long period or timer.device for short periods.
Thanks... got delay working fine... any tips on threading from amigados as there doesn't seem to be a pthread implementation in stormc anyway.

(Use tasks in exec?)

Last edited by Vot; 26 May 2013 at 16:38.
Vot is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Many problems, no sleep! Synthesize Me support.Hardware 6 25 August 2011 02:23
Amiga.inc - have they gone to sleep? Paul_s Amiga scene 9 17 November 2008 14:14
Need help: StormC 3 AlfaRomeo Coders. General 27 10 October 2008 11:31
Best Amiga E implementation Madcrow Coders. General 1 25 June 2008 00:54
help me please...im losing sleep!!! cmarcel23 New to Emulation or Amiga scene 3 12 August 2002 20:52

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 16:47.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.09460 seconds with 15 queries