X-Git-Url: http://www.lcore.org/git/lcore.git/blobdiff_plain/82d4e52fba54be50d719f6185ec381f2dc87fc6c..eaf53edbc38a2987348e92205a2fd2f1982bc2e1:/lcoreselect.pas diff --git a/lcoreselect.pas b/lcoreselect.pas index 0d99f6a..16134ee 100755 --- a/lcoreselect.pas +++ b/lcoreselect.pas @@ -31,6 +31,8 @@ var function getfdsrmaster : fdset; {$ifdef useinline}inline;{$endif} function getfdswmaster : fdset; {$ifdef useinline}inline;{$endif} +procedure lcoreinit; + implementation uses lcore,sysutils, @@ -392,9 +394,13 @@ begin fdreverse[fd] := reverseto; end; +var + inited:boolean; - +procedure lcoreinit; begin + if inited then exit; + inited := true; eventcore := tselecteventcore.create; absoloutemaxs := absoloutemaxs_select; @@ -402,4 +408,6 @@ begin maxs := 0; fd_zero(fdsrmaster); fd_zero(fdswmaster); +end; + end.