From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 17276 invoked from network); 29 Sep 1998 16:17:53 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 29 Sep 1998 16:17:53 -0000 Received: from voicenet.com (mail11.voicenet.com [207.103.0.37]) by mail.redhat.com (8.8.7/8.8.7) with SMTP id MAA04705 for ; Tue, 29 Sep 1998 12:16:30 -0400 Received: (qmail 18254 invoked from network); 29 Sep 1998 16:15:53 -0000 Received: from rotary943-pri.voicenet.com (HELO voicenet.com) (209.71.52.43) by mail11.voicenet.com with SMTP; 29 Sep 1998 16:15:53 -0000 Message-ID: <361107B7.E495B322@voicenet.com> Date: Tue, 29 Sep 1998 12:15:53 -0400 From: Uncle George Organization: None Avail X-Mailer: Mozilla 4.04 [en] (WinNT; I) MIME-Version: 1.0 To: "Danny.Backx@kb.be" CC: "java-linux@java.blackdown.org" , lesstif , "axp-list@redhat.com" Subject: Re: lesstif - thread safe ? References: <199809290024.RAA14838@sebastian.protocol.com> <36108303.1342@kb.be> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit i was just trying to see some of the probs in doing a "Native" port of the java 116 jdk. Its one thing to try to get ur task ( java ) done, without having to go to other software packages to get it to go also ( like gdb, libdl.so, lesstiff ( a while back ), ld ) . Since it seems possible ( as it is/has been DONE by some other group ) to do, i though i'd give it a shot ( again ). I'm not sure if the blackdown porters are into this NATIVE thread port - they are a little secretive on what they are currently doing. Maybe an open collaboration? Anyway, if i get that far, my bigger problem would be to find a dual cpu alpha to try it on, which would be the only way i know how to test the threading of the port. BUT that is a while away from now. gat Danny Backx wrote: > Even if we're aiming for 1.2, it should be possible to > make LessTif threadsafe. The r6 Xt documentation describes > what to do. > > >From memory (read this a couple of years ago), I think we > need to add calls to ensure threadsafeness in a couple of > standard places. > > The calls to place are XtAppLock and XtAppUnlock, see > http://www.motifzone.com/resources/man/XtAppLock.html . > > Specific instructions seem to be in one of the O'Reilly > books (see > http://www.redhat.com/linux-info/gtk/gtk-list/1997-July/0173.html) > > Does anyone have it ? (I might, I'm not sure.) > > Uncle, how about giving it a try ? > > Danny > > Jon Fo wrote: > > > > > > > > some folks who ported the java 116/i386/linux have used native threads > > > to do threading. In their website they suggested that lesstif is not > > > thread safe - which i suppose means that coordination of Xm calls > > > between the independent threads just doesn't exist. > > > > > > it that true?, and if so are there any though processies going on to > > > "make it so". > > > gat > > > > > As I recall, Motif 1.2 is not thread safe, so if the port is expecting Motif 1.2.x, > > then I don't see this as an issue. In fact, I believe the calls to Motif libraries > > are (only) made from the AWT thread, so being thread-safe should not be an issue. > > However, if you write native code that makes Motif calls, you're on your own. > > I have a workaround that works in some situations. > > > > This is further corroborated by the fact that Java on Sun Solaris uses > > Motif 1.2.x, which as I mentioned before, is probably not thread safe. > >