X-Git-Url: http://www.lcore.org/git/lcore.git/blobdiff_plain/f04d9ac0ffbe96ead372b84dad0786daba7f5ed7..85ef2ce64f0cc31a063fccea69fdcc7281d51548:/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.