ThreadSafety Aspect
[Synchronization Group]

This aspect is defined in file: ../../AspectXLib/RealTime/Datapool/aspects/ThreadSafety.ax

Aspect Description


Pointcuts

functionMethodsToBeLocked
 
classClassesToBeLocked
 
constructorConstructors
 
destructorDestructors
 

Advices

beginLockMutex
 
endUnlockMutex
 
addAddMutexMember
 
beginInitMutexInConstructor
 
beginDestroyMutexInDestructor
 Calls pthread_mutex_destroy() on the _mutex object
addAddIncludes
 
endCommentConstructor
 
endCommentDestructor
 Calls pthread_mutex_destroy() on the _mutex object
endCommentMethods
 

Pointcut Documentation

function MethodsToBeLocked (source)
class ClassesToBeLocked (source)
Classes for which thread safety shall be added
constructor Constructors (source)
destructor Destructors (source)

Advice Documentation

begin LockMutex (source)

Triplet: function begin codeFragment

Adds pthrea_locker

Refers to global pointcut: function MethodsToBeLocked (ThreadSafety)

end UnlockMutex (source)

Triplet: function end codeFragment

Adds pthrea_locker

Refers to global pointcut: function MethodsToBeLocked (ThreadSafety)

add AddMutexMember (source)

Triplet: class add declaration

Refers to global pointcut: class ClassesToBeLocked (ThreadSafety)

begin InitMutexInConstructor (source)

Triplet: constructor begin codeFragment

Refers to global pointcut: constructor Constructors (ThreadSafety)

begin DestroyMutexInDestructor (source)

Triplet: destructor begin codeFragment

Calls pthread_mutex_destroy() on the _mutex object.

Refers to global pointcut: destructor Destructors (ThreadSafety)

add AddIncludes (source)

Triplet: unit add include

Local Pointcut: unit (source)

end CommentConstructor (source)

Triplet: comment end comment

Local Pointcut: comment (source)

end CommentDestructor (source)

Triplet: comment end comment

Calls pthread_mutex_destroy() on the _mutex object.

Local Pointcut: comment (source)

end CommentMethods (source)

Triplet: comment end comment

Local Pointcut: comment (source)