BOOS Core API 3.1
- api::Collection<Type>
- api::Heap
- api::IllegalValue<Type>
- api::Interrupt
- api::Iterable<Type>
- api::Iterator<Type>
- api::Kernel
- api::List<Type>
- api::ListIterator<Type>
- api::Mutex
- api::Object
- api::ProcessorInterrupt
- api::ProcessorPll
- api::ProcessorRegisters
- api::ProcessorTimer
- api::Queue<Type>
- api::Resource
- api::Runtime
- api::Scheduler
- api::Semaphore
- api::Stack<Type>
- api::String<Char>
- api::Synchronizable
- api::System
- api::Task
- api::Thread
- api::Timer
- api::Toggle
- api::Value<Type>
- library::AbstractBuffer<Type,Alloc>
- library::AbstractLinkedList<Type,Alloc>
- library::Align<Type,SIZEOF,Alloc>
- library::Buffer<Type,COUNT,Alloc>
- library::CircularList<Type,Alloc>
- library::Heap
- library::LinkedList<Type,Alloc>
- library::LinkedNode<Type,Alloc>
- library::Memory
- library::Stack<Type,Alloc>
- library::String<Char,Alloc>
- library::Toggle<Alloc>
EOOS Automotive R22-08 is released in version v0.10.0
The second official release of EOOS Automotive that is qualified for POSIX and WIN32 compatible operating systems and based on interfaces designed for EOOS RT – real time operating system.
Interface «api::Semaphore»
Semaphore interface.
- api::Semaphore
- public api::Resource
- public api::Object
- public api::Resource
public:
virtual bool acquire(int32 permits);
virtual bool isConstructed() const;
public: virtual ~Semaphore();
Destructor.
public: virtual bool acquire();
Acquires one permit from this semaphore.
The method acquires one permit or waits while the permit will be released.
Returns:
true if the semaphore is acquired successfully.
public: virtual bool acquire(int32 permits);
Acquires the given number of permits from this semaphore.
The method acquires given permits number or waits while the number will be released.
Parameters:
permits — the number of permits to acquire.
Returns:
true if the semaphore is acquired successfully.
public: virtual bool isBlocked();
Tests if this resource is blocked.
Returns:
true if this resource is blocked.
public: virtual bool isConstructed() const;
Tests if this object has been constructed.
public: virtual bool isFair() const;
Tests if this semaphore is fair.
Returns:
true if this semaphore has fairness set true.
public: static bool isObject(const Type* obj);
Tests if given object has been constructed object.
public: virtual void release();
Releases one permit.
The method releases from one permit and returns this to the semaphore.
public: virtual void release(int32 permits);
Releases the given number of permits.
The method releases from the permits and returns these to the semaphore.
Parameters:
permits — the number of permits to release.