[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

BOUNCE rtl@rtlinux.org: Approval required: (fwd)



>From owner-rtl Wed May  9 06:29:56 2001
Received: from hq2.fsmlabs.com (hq2.fsmlabs.com [209.155.42.199])
	by hq.fsmlabs.com (8.11.2/8.11.2) with SMTP id f49CTuJ21434
	for <rtl@fsmlabs.com>; Wed, 9 May 2001 06:29:56 -0600
Received: (qmail 10070 invoked by uid 1002); 9 May 2001 12:22:59 -0000
Date: Wed, 9 May 2001 06:22:59 -0600
From: Victor Yodaiken <yodaiken@fsmlabs.com>
To: rtl@fsmlabs.com
Subject: Re: [rtl] putting threads to sleep
Message-ID: <20010509062259.B10023@hq2>
References: <A3A5582AC3AFD448A7C0BD2DB7EFDC5F1143AE@BTR-COM1.btr-auto.aust.com> <3AF46A7A.FD4DE2F5@city.dk>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.15i
In-Reply-To: <3AF46A7A.FD4DE2F5@city.dk>; from agn@city.dk on Sat, May 05, 2001 at 08:02:51PM -0100
Organization: FSM Labs


I'm not clear on what exactly you are doing:
	1. If you want to put a realtime RTLinux thread to sleep
	there are many methods. The correct POSIX method is

	clock_nanosleep  -- for a timed wait
	pthread_cond_wait
	or
	pthread_cond_timedwait

	although pthread_suspend_np works fine.





On Sat, May 05, 2001 at 08:02:51PM -0100, Anders Gnistrup wrote:
> karl rentsch wrote:
> 
> > Hi all,
> >
> > I've got a problem I hope someone can help me with.  I'm trying to put a
> > thread to sleep but I don't want to tie up the system using usleep() or
> > nanosleep().  I've tried using pthread_make_periodic_np configured as a
> > one shot timer (ie. it needs to repeat several times but for different
> > time intervals) but it doesn't seem to work
> > Any help would be much appreciated
> > Thanks
> > Karl Rentsch
> 
> I am working on the same problem. What I have found is that the funktion
> sigaction
> can be used for that purpuse. Right now I do not know how. Is you find a
> solution I realy
> whold like to about it
> 
> Anders Gnistrup
> 
> 
> >
> >
> > -- [rtl] ---
> > To unsubscribe:
> > echo "unsubscribe rtl" | mail majordomo@rtlinux.org OR
> > echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.org
> > --
> > For more information on Real-Time Linux see:
> > http://www.rtlinux.org/rtlinux/
> 
> 
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail majordomo@rtlinux.org OR
> echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.org
> --
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/rtlinux/