From owner-freebsd-questions Fri Jul 10 10:01:08 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA06601 for freebsd-questions-outgoing; Fri, 10 Jul 1998 10:01:08 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from relay.kacst.edu.sa (ns1.kacst.edu.sa [198.77.88.3]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA06596 for ; Fri, 10 Jul 1998 10:01:02 -0700 (PDT) (envelope-from onur@kfupm.edu.sa) Received: from ns1.kfupm.edu.sa ([198.77.102.26]) by relay.kacst.edu.sa (8.7.5/8.7.3) with ESMTP id TAA05122; Fri, 10 Jul 1998 19:52:26 -0300 (GMT) Received: from dpc107.dpc.kfupm.edu.sa (dpc107.dpc.kfupm.edu.sa [196.15.33.198]) by ns1.kfupm.edu.sa (8.7.5/8.7.3) with ESMTP id TAA186056; Fri, 10 Jul 1998 19:48:37 +0300 Received: from kfupm.edu.sa ([196.1.65.80]) by dpc107.dpc.kfupm.edu.sa (8.7.5/8.7.3) with ESMTP id TAA23272; Fri, 10 Jul 1998 19:57:21 +0300 Message-ID: <35A68F15.F26CCF74@kfupm.edu.sa> Date: Fri, 10 Jul 1998 20:00:53 -0200 From: Onur Toker Organization: KFUPM, CCSE X-Mailer: Mozilla 4.05 [en] (X11; I; SunOS 5.6 i86pc) MIME-Version: 1.0 To: onur@kfupm.edu.sa, FREEBSD , SOLARIS-X86 Subject: Multithreaded X11 applications Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello, (1) I am looking for multithreaded X11 application examples (Using Solaris threads, and/or POSIX threads). Do you know any that may help me to understand the current state of the art ? (2) If you are an X11 expert, do you know any actual widget library written completely in C++ ? All widget libraries that I know are written in C, and I am just curious to learn what direction the industry has adopted in the past couple of years. To give you a better idea about what I would like to do, I include this short program fragment. This is basically what I want to do. WindowThread will be a "self" managed GraphicsWindow widget. #include "Window.h" #include #include #include void main(int argc, char **argv) { // Initialize the window thread WindowThread W(10, 10, 100, 100, "TestWin"); // Display the window on the screen W.disp(); // Initialize the window thread WindowThread W2(210, 210, 100, 100, "TestWin"); // Display the window on the screen W2.disp(); // Start the EVENT HANDLER LOOP as a thread W.start(); // Start the EVENT HANDLER LOOP as a thread W2.start(); // Plot something while(1) { int i; for (i = 0; i < 100; i++) { W.plot(rand() % 100, rand() % 100,rand() % 100, rand() % 100); W.flush(); W2.plot(rand() % 100, rand() % 100,rand() % 100, rand() % 100); W2.flush(); } W.clear(); W2.clear(); } thr_exit(NULL); } Thanks, Onur To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message