SDL_ThreadEvents() patch

Sam Lantinga slouken at devolution.com
Sat Apr 4 10:04:06 PST 1998


SDL_ThreadEvents() is broken in SDL-0.5

Here's a patch:
begin 664 sdlnothread.pat
M9&EF9B`M<F, at 4T1,+3`N-F$N;VQD+T-O;F9I9W5R92YS:"!31$PM,"XV82]#
M;VYF:6=U<F4N<V@**BHJ(%-$3"TP+C9A+F]L9"]#;VYF:6=U<F4N<V@)5V5D
M($%P<B`@,2`R,3HS-SHT-"`Q.3DX"BTM+2!31$PM,"XV82]#;VYF:6=U<F4N
M<V@)4V%T($%P<B`@-"`P.3HT.3HP-2`Q.3DX"BHJ*BHJ*BHJ*BHJ*BHJ*@HJ
M*BH@,3(R+#$R-R`J*BHJ"BTM+2`Q,C(L,3,V("TM+2T*("`)"0D)87-M9FEL
M97,](F-L;VYE+E,B"B`@"0D)9FD*("`)"0EE>'1R86QI8G,](BU,+W5S<B]8
M,3%2-B]L:6(@+6Q8,3$@+6Q897AT(@HK(`HK(`D)"2, at 0VAE8VL@9F]R(&)R
M;VME;B!,:6YU>%!00R!P=&AR96%D<PHK(`D)"6EF(%L@(F!U;F%M92`M;6`B
M(#T@(G!P8R(@73L@=&AE;@HK(`D)"0EE8VAO(%P**R`B"BL@*B!,:6YU>"!T
M:')E861S(&%R92!C=7)R96YT;'D at 8G)O:V5N('5N9&5R(%!00R`H07!R:6P@
M)SDX*0HK("(**R`)"0D)97AT<F%F;&%G<STB)&5X=')A9FQA9W, at +41&3U)+
M34U!4%](04-+(@HK(`D)"69I"B`@"0D).SL*("`)"2`@*BD*("`)"0EE8VAO
M(")5;FMN;W=N('-U8G-Y<W1E;2`G)'-U8G-Y<W1E;2<@9F]R("1T87)G970B
M"D]N;'D@:6X at 4T1,+3`N-F$Z($Y/5$53"F1I9F8 at +7)C(%-$3"TP+C9A+F]L
M9"]I;F-L=61E+U-$3%]E=F5N=',N:"!31$PM,"XV82]I;F-L=61E+U-$3%]E
M=F5N=',N:`HJ*BH at 4T1,+3`N-F$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("`C(PH@(&EN8VQU9&4@;6MF<F%G+V-O;F9I9R]M
.86ME+F-O;F8*("`C(PH*
`
end

See ya!
	-Sam Lantinga				(slouken at devolution.com)

--
Author of Simple DirectMedia Layer -
	http://www.devolution.com/~slouken/projects/SDL/
--



More information about the SDL mailing list