[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
BOUNCE rtl@rtlinux.org: Approval required: (fwd)
- To: rtl@rtlinux.org
- Subject: BOUNCE rtl@rtlinux.org: Approval required: (fwd)
- From: Der Herr Hofrat <der.herr@hofr.at>
- Date: Thu, 2 Aug 2001 08:59:31 +0200 (CEST)
>From owner-rtl Wed Aug 1 07:50:16 2001
Received: from nt_server.stellartec.com ([205.178.20.2])
by hq.fsmlabs.com (8.11.2/8.11.2) with ESMTP id f71DoGs07152
for <rtl@rtlinux.com>; Wed, 1 Aug 2001 07:50:16 -0600
Received: from wssseeger ([205.178.20.116]) by nt_server.stellartec.com
(Post.Office MTA v3.1.2 release (PO205-101c)
ID# 568-43562U100L2S100) with SMTP id AAA524
for <rtl@rtlinux.com>; Wed, 1 Aug 2001 06:48:47 -0700
Reply-To: <sseeger@stellartec.com>
From: sseeger@stellartec.com (Steven Seeger)
To: <rtl@rtlinux.com>
Subject: pthread_wakeup_np blocks
Date: Wed, 1 Aug 2001 06:51:27 -0700
Message-ID: <002501c11a91$0fdf3130$7414b2cd@wssseeger>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2911.0)
X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
Importance: Normal
Hey all. I'll make it simple, and if anyone wants to see the code I can post
it.
I set up some tasks which go through their own initialization and then
suspend themselves with pthread_suspend_np(pthread_self()).
My system revolves around a series of FIFOs, and the main one from the GUI
in user space sends a command say to play some audio (writes to a DAC on our
interface board housing the PC/104) and from there a funciton is called
which wakes up the audio thread. This works fine, but if I let the system
sit a while and then press something on the touch panel that should generate
a clicking sound, for example, the GUI will just sit there for about half a
second and then the audio will start.
Why do my tasks take this long to wakeup after they have been suspended for
several minutes?
The task is calling pthread_wait_np() at each run through the loop. The
audio task runs at a period of 122000 ns. Clock running in periodic mode.
Thanks!
Steve
sseeger@stellartec.com
----- End of forwarded message from owner-rtl@fsmlabs.com -----