Re: Bound Threads

2003-02-28 Thread Sven Panne
I just skimmed over Wolfgang's PDF and things look quite reasonable.
Just to make sure I have understood everything correctly: To make
HOpenGL work in the presence of a threaded RTS, the only places which
need a change are the stub factories for GLUT callbacks, where a "bound"
attribute is required now.

What about the foreign import of glutMainLoop (the main native dispatcher
for GLUT, which calls the Haskell callbacks mentioned above when an event
occurs and blocks the rest of the time)? It is currently "safe", is this
OK? Or should it be "threadsafe"? I must admit that I can't remember the
exact semantic distinction between those two attributes anymore... :-}

Cheers,
   S.
___
FFI mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/ffi


Re: Bound Threads

2003-02-28 Thread Wolfgang Thaller
Sven Panne wrote:

Just to make sure I have understood everything correctly: To make
HOpenGL work in the presence of a threaded RTS, the only places which
need a change are the stub factories for GLUT callbacks, where a 
"bound"
attribute is required now.
Correct.

What about the foreign import of glutMainLoop (the main native 
dispatcher
for GLUT, which calls the Haskell callbacks mentioned above when an 
event
occurs and blocks the rest of the time)? It is currently "safe", is 
this
OK? Or should it be "threadsafe"?
It should probably be "threadsafe", just in case somebody wants to do 
some (non-OpenGL) work in the background.

I must admit that I can't remember the
exact semantic distinction between those two attributes anymore... :-}
The problem is, nobody does... the original implementation didn't work 
in all cases. The original implementation made "safe" calls block all 
other haskell threads in some cases, and crashed in other cases. 
"Threadsafe" means that calling the foreign import shouldn't block or 
otherwise disturb other haskell threads. "Safe" means... well... almost 
nobody seems to know, and still fewer people agree on it.
In the current "HEAD", there is no difference between threadsafe and 
safe. If someone comes up with a clear specification of why and how 
"safe" should be different from threadsafe, things might change again.
This issue is (I think/hope) entirely orthogonal to the Bound Threads 
proposal.

Cheers,

Wolfgang

___
FFI mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/ffi


The best Cigar ever made, you must read this

2003-02-28 Thread Karen Dever R.
Y O U   S M O K E   C I G A R S ?

THEN, YOU MUST READ THIS NOW:

Introducing the best Cigar ever Made in the world, San
Teodoro Cigar is the most awarded Cigar around the world,
it has been qualified by the Tobbaconists as well as the
worldwide press as the best Puro ever made.

"San Teodoro is by excelence The best cigar in the world."
(New York Post, November 2002)

"I have never tried something like this, ...you wont belive the flavor!.."
(USA today, January 2003) 

www.lavinycarranza.com

 The "artesanal" process for making a San Teodoro Cigar its
 unique. We aged our products more than five years in the
 best Spanish cedar wood cabinets, just imagine smoking the
 finest Cigar on the world in a cold night, in the living room near
 a fire or simply on the outside watching the sky and feeling its
 flavor. San Teodoro Cigar is made from the finest elements;
 its “aсejamiento” and a magnificent clear cover give this Cigar 
its unique exquisite flavor elements, with touches of wood, 
caramel and coffee, this will be the last cigar you smoke in
 your life, we guarantied that every time you smoke it you will
 be experiencing the greatest moments of your life as a somker.

When you open it you can feel its complex flavor coming out from 
the crystal tube, during the aging process San Teodoro is rested
in Spanish cedar cabinets, this near virgin vanilla leaves, coffee
grains and other spices that gives them its characteristically and
exquisite flavor, all our cigars come individually in a crystal tube in
order to maintain its humidity and flavor, also they come wrapped
in a fine cedar wood inside the tube to continue with the aging
process no matter where you got them. The crop for this year
(1997-2003) comes only on Churchill size.

Now and for a limited offer, you can buy this exquisite cigar with
more than 5 years of aging delivered to your home.

Click below to buy your San Teodoroґs at the lower prices ever,
delivered directly to your home in less than 3 days.

 *S&H free inside USA and Canada

http://www.lavinycarranza.com

You are receiving this email because you opted-in to receive special offers from CIAT 
Central through one of our marketing partners. If you feel you have received this 
email in error or do not wish to receive additional special offers, please go to our 
website and then to (unsubscribe)


* Only Available on Continental USA, Canada and Mйxico. Local tobacco taxes may apply .
 
___
FFI mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/ffi