Issue Details (XML | Word | Printable)

Key: CORE-5619
Type: New Feature New Feature
Status: Open Open
Priority: Trivial Trivial
Assignee: Unassigned
Reporter: Slavomir Skopalik
Votes: 4
Watchers: 4
Operations

If you were logged in you would be able to see more operations.
Firebird Core

Sleep function into fbudf

Created: 20/Sep/17 11:13 PM   Updated: 21/Sep/17 08:41 AM
Component/s: UDF
Affects Version/s: 2.5.7, 3.0.2, 4.0 Alpha 1
Fix Version/s: None

Environment: Any

QA Status: No test


 Description  « Hide
Add Sleep function as common fbudf function.
This is helpful during obtaining lock or testing.
Declaration like:
DECLARE EXTERNAL FUNCTION Sleep
INTEGER NULL
RETURNS INTEGER BY VALUE
ENTRY_POINT 'Sleep' MODULE_NAME 'masaudf';

Implementation (in pascal):
function Sleep(time:PINT):integer; cdecl;
begin
  result:=0;
  if time=nil then exit;
  windows.Sleep(time^);
end;


 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
There are no subversion log entries for this issue yet.