🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #38292

Re: Calling an idle function in X

#38292
From: Wade Hundley
Date: Thu, 03 Jul 1997 00:00
28 lines
1947 bytes
Joshua Rosinger wrote:
> 
> Hi everyone,
> 
> I am doing a program that invlolves OpenGL, Xlib and a bit of Xt. What I
> want to do is to be able to call a function even if there are no X
> events for my program, ie to perform some work even if the connection is
> idle. This is similar to glutIdleFunc in OpenGL. I need to do it with
> Xlib so I can't use XtAppMainLoop.
> 



Try using XtAddWorkProc. (workId = XtAddWorkProc(
funcCB, 			                                (XtPointer)client_data) )

The funcCB function that you provide will be called when your
process becomes idle.



-- 
------------------------------------------------------------------------
Wade Hundley   					Suite 300
ERDAS Inc.					2801 Buford Highway
hundley@erdas.com				Atlanta GA, 30329
Senior Software Engineer			(404)248-9000 ext. 2241
Technical Details
Message-ID: <33BBCA34.167E@erdas.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <33BBAE35.1B2B5D48@greenrose.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f6cac,42c827b68b1cbd4a
X-Google-Attributes: gidf6cac,public
X-Google-Thread: 1667f1,42c827b68b1cbd4a
X-Google-Attributes: gid1667f1,public
X-Google-Thread: 103734,42c827b68b1cbd4a
X-Google-Attributes: gid103734,public
X-Google-Thread: 1051fd,42c827b68b1cbd4a
X-Google-Attributes: gid1051fd,public
X-Google-Thread: f4bda,42c827b68b1cbd4a
X-Google-Attributes: gidf4bda,public
X-Google-Thread: 1082b0,42c827b68b1cbd4a
X-Google-Attributes: gid1082b0,public
X-Google-Thread: 10b6ac,42c827b68b1cbd4a
X-Google-Attributes: gid10b6ac,public
X-Google-Thread: 11038b,42c827b68b1cbd4a
X-Google-Attributes: gid11038b,public
From: Wade Hundley <hundley@erdas.com>
Subject: Re: Calling an idle function in X
Date: 1997/07/03
Message-ID: <33BBCA34.167E@erdas.com>
X-Deja-AN: 254302912
References: <33BBAE35.1B2B5D48@greenrose.com>
Organization: ERDAS
Newsgroups: comp.windows.x,comp.os.linux.x,comp.windows.x.i386unix,de.comp.os.linux.x,de.comp.x11,fj.windows.x,comp.windows.x.motif,comp.windows.x.intrinsics,comp.graphics.api.opengl