bogdanpolak / bogdanpolak/command-delphi
Async Command - property ThreadSafeObject
- Dominant language
- Pascal
- Stars
- 29
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Description
```pas
type TAsyncCommand = class(TCommand)
property ThreadSafeObject: TObject
read GetThreadSafeObject
write SetThreadSafeObject;
```
```pas
function TAsyncCommand GetThreadSafeObject: TObject;
begin
TMonitor.Enter(Self);
try
Result := fThreadSafeObject;
finally
TMonitor.Exit(Self);
end;
end;
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Locate TAsyncCommand and its TCommand base, then inspect the existing GetThreadSafeObject and SetThreadSafeObject entry points. The issue names no files or tests; done should mean the ThreadSafeObject property is available with the intended synchronized access shown in the issue.
Written by the indexing model from the issue text.
Assessment
- Domain
- desktop
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100