Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed couple small typos #192

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions OtlContainers.pas
Original file line number Diff line number Diff line change
@@ -108,7 +108,7 @@
{$ENDIF ~CPUX64}
//DEFINE DEBUG_OMNI_QUEUE to enable assertions in TOmniBaseQueue

//We don't have a platform-independant way of using cmpx8b/cmpx16b
//We don't have a platform-independent way of using cmpx8b/cmpx16b
//(5-parameter OtlSync.CAS) so we can't use bus-locking on non-Windows targets.
{$IFDEF MSWINDOWS}
{$DEFINE OTL_HaveCmpx16b}
@@ -1140,7 +1140,7 @@ function TOmniBoundedQueue.Enqueue(const value): boolean;
//Bus-locking queue implementation.
//On non-Windows platforms same memory layout is used, but synchronisation
//is achieved using a critical section, not with bus-locking because we
//don't have a platform-independant equivalent of cmpx8b/cmpx16b.
//don't have a platform-independent equivalent of cmpx8b/cmpx16b.

(*
TOmniQueue
8 changes: 4 additions & 4 deletions OtlThreadPool.pas
Original file line number Diff line number Diff line change
@@ -542,7 +542,7 @@ TOTPWorker = class(TOmniWorker, IOTPWorker)
// invoked from TOmniThreadPool
procedure Cancel(const params: TOmniValue);
procedure CancelAll(const params: TOmniValue);
procedure MaintainanceTimer;
procedure MainteinanceTimer;
end; { TOTPWorker }

TOTPThreadDataFactoryData = class
@@ -1151,7 +1151,7 @@ function TOTPWorker.Initialize: boolean;
owStoppingWorkers := TObjectList.Create(false);
owWorkItemQueue := TObjectList.Create(false);
CountQueued.Value := 0;
Task.SetTimer(1, 1000, @TOTPWorker.MaintainanceTimer);
Task.SetTimer(1, 1000, @TOTPWorker.MainteinanceTimer);
UpdateScheduler;
Result := true;
end; { TOTPWorker.Initialize }
@@ -1230,7 +1230,7 @@ procedure TOTPWorker.Log(const msg: string; const params: array of const );
{$ENDIF LogThreadPool}
end; { TOTPWorker.Log }

procedure TOTPWorker.MaintainanceTimer;
procedure TOTPWorker.MainteinanceTimer;
var
iWorker: integer;
worker : TOTPWorkerThread;
@@ -1293,7 +1293,7 @@ procedure TOTPWorker.MaintainanceTimer;
else
Inc(iWorker);
end;
end; { TOTPWorker.MaintainanceTimer }
end; { TOTPWorker.MainteinanceTimer }

procedure TOTPWorker.CheckIdleQueue;
var