[Mono-list] question and solution

Lloyd Dupont lloyd@galador.net
Wed, 17 Jul 2002 22:03:16 +1000


This is a multi-part message in MIME format.

------=_NextPart_000_00A9_01C22DDD.C0F9E4A0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Hi mono user !

I have nearly finish what I think I could call a useful 5 lines long
library.
Which is attached

It help you call any C-function pointer from C# without writting any
additional native (C) wrapper.
you absolutly need gcc to compile it as it use gcc builtin function.

BTW I still have one problem without.
it is thread unsafe.

I want to solve that not with mutex, but with thread local variable.
do you know how to do that ?

with MS compiler I could use "__declspec( thread )" but I need gcc here...

BTW could you reply to me (lloyd@galador.net) too... (I must confess I am
not registered...)



------=_NextPart_000_00A9_01C22DDD.C0F9E4A0
Content-Type: application/x-compressed;
	name="inter.tgz"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
	filename="inter.tgz"

H4sIAMFcNT0AA+1Xa2/bNhTN1xrwf7hw00H2bFlWbAew13ZrsgYZsjRoGgzYy1Ao2iZKkwJJZXGK
/fddUpIlbECzR5J94bFhUeTlPZePe0gzYagKid57RESjKJqOx3tRFI0OJwfuiV/7tBhNJ4d70eFk
NIkn03g6RXssTvcgesygKuTaJApgj3O5TT9j901OcvEUAT0tcs3ECi632tDNvN1qvobvc2HYhoan
do/I7JKqG0aoRrN2K8uvOSNAeKI1fKDatFuf2q1nPx1zfrrJpDJBRySG3dAw5bzTh2+FUdsLyYR5
2dHUdLq/oHXpBFfA4IPeIo2AG8lSuFA0SxQ9SjgPkP7CKFgS0wfsD4laaXZHuy6OZ8MhpBTDUOhD
CtDJJuP070ZC0P99oRxLF0VBVxButkBw38gNhpGCdaLDMHx40lGgjbILovuQSjSmkBZzwGw4D00X
N+iq0qguxnXxoJ78FTWQYa1Zwj+Yg9Vnt0C54ifUvCXGzTwg/mLtQv8+YSLoYtunwsoCw8I9BmZN
YZkL4jZGZompqo2aW6xi6sNoWg7Njo1pnVPQckOLRa47V+vTeRHGS3gFL9KfBQ5xH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