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

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



>From owner-rtl Tue Jul 31 17:49:17 2001
Received: from nt_server.stellartec.com ([205.178.20.2])
	by hq.fsmlabs.com (8.11.2/8.11.2) with ESMTP id f6VNn6702767
	for <rtl@rtlinux.org>; Tue, 31 Jul 2001 17:49: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 AAA471
          for <rtl@rtlinux.org>; Tue, 31 Jul 2001 13:20:36 -0700
Reply-To: <sseeger@stellartec.com>
From: sseeger@stellartec.com (Steven Seeger)
To: <rtl@rtlinux.org>
Subject: pthread_wakeup_np blocks
Date: Tue, 31 Jul 2001 13:23:17 -0700
Message-ID: <001e01c119fe$a2f09d30$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 -----