Changeset 665 for trunk/Packages/uos/uos.pas
- Timestamp:
- Jul 9, 2025, 4:45:12 PM (13 hours ago)
- Location:
- trunk/Packages/uos
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/uos
-
Property svn:ignore
set to
lib
-
Property svn:ignore
set to
-
trunk/Packages/uos/uos.pas
r664 r665 575 575 {$else} 576 576 TProc = procedure of object; 577 TPlayerProc = procedure (PlayerIndex: cint32) of object; 577 578 {$endif} 578 579 … … 762 763 procedure DoTerminatePlayer; 763 764 procedure DoEndProc; 765 procedure EndProcExecute; 764 766 765 767 {$IF DEFINED (mse)} … … 795 797 796 798 // Procedure of object to execute at end of thread 797 EndProc: TP roc;799 EndProc: TPlayerProc; 798 800 799 801 // Procedure to execute at end of thread (not of object) … … 840 842 // Stop playing and free thread 841 843 procedure Stop (); 842 843 // Stop playing and free thread844 procedure StopAndWait ();845 844 846 845 // Pause playing … … 2471 2470 Status := 0; 2472 2471 end; 2473 end;2474 2475 procedure Tuos_Player.StopAndWait();2476 begin2477 Stop;2478 if Assigned(thethread) then thethread.WaitFor;2479 2472 end; 2480 2473 … … 9722 9715 {$IF not DEFINED (Library)} 9723 9716 if EndProc <> nil then 9724 thethread.{$IF DEFINED (usequeue)}Queue{$else}Synchronize{$endif} (thethread, EndProc);9717 thethread.{$IF DEFINED (usequeue)}Queue{$else}Synchronize{$endif} (thethread, @EndProcExecute); 9725 9718 9726 9719 {$elseif not DEFINED (java)} … … 9734 9727 end; 9735 9728 9729 procedure Tuos_Player.EndProcExecute; 9730 begin 9731 EndProc(Index); 9732 end; 9733 9736 9734 procedure Tuos_Player.DoTerminateNoFreePlayer; 9737 9735 var … … 9791 9789 if EndProc <> nil then 9792 9790 {$IF FPC_FULLVERSION>=20701} 9793 thethread.{$IF DEFINED (usequeue)}Queue{$else}Synchronize{$endif} (thethread, EndProc);9791 thethread.{$IF DEFINED (usequeue)}Queue{$else}Synchronize{$endif} (thethread, @EndProcExecute); 9794 9792 {$else} 9795 9793 thethread.{$IF DEFINED (usequeue)}Queue{$else}Synchronize{$endif} (thethread,EndProc);
Note:
See TracChangeset
for help on using the changeset viewer.