24 |
24 |
25 // INCLUDES |
25 // INCLUDES |
26 #include "eap_am_types.h" |
26 #include "eap_am_types.h" |
27 #include "eap_variable_data.h" |
27 #include "eap_variable_data.h" |
28 #include "eap_am_export.h" |
28 #include "eap_am_export.h" |
|
29 // Start: added by script change_export_macros.sh. |
|
30 #if defined(EAP_NO_EXPORT_EAP_AM_MUTEX_SYMBIAN_H) |
|
31 #define EAP_CLASS_VISIBILITY_EAP_AM_MUTEX_SYMBIAN_H EAP_NONSHARABLE |
|
32 #define EAP_FUNC_VISIBILITY_EAP_AM_MUTEX_SYMBIAN_H |
|
33 #define EAP_C_FUNC_VISIBILITY_EAP_AM_MUTEX_SYMBIAN_H |
|
34 #define EAP_FUNC_EXPORT_EAP_AM_MUTEX_SYMBIAN_H |
|
35 #define EAP_C_FUNC_EXPORT_EAP_AM_MUTEX_SYMBIAN_H |
|
36 #elif defined(EAP_EXPORT_EAP_AM_MUTEX_SYMBIAN_H) |
|
37 #define EAP_CLASS_VISIBILITY_EAP_AM_MUTEX_SYMBIAN_H EAP_EXPORT |
|
38 #define EAP_FUNC_VISIBILITY_EAP_AM_MUTEX_SYMBIAN_H EAP_FUNC_EXPORT |
|
39 #define EAP_C_FUNC_VISIBILITY_EAP_AM_MUTEX_SYMBIAN_H EAP_C_FUNC_EXPORT |
|
40 #define EAP_FUNC_EXPORT_EAP_AM_MUTEX_SYMBIAN_H EAP_FUNC_EXPORT |
|
41 #define EAP_C_FUNC_EXPORT_EAP_AM_MUTEX_SYMBIAN_H EAP_C_FUNC_EXPORT |
|
42 #else |
|
43 #define EAP_CLASS_VISIBILITY_EAP_AM_MUTEX_SYMBIAN_H EAP_IMPORT |
|
44 #define EAP_FUNC_VISIBILITY_EAP_AM_MUTEX_SYMBIAN_H EAP_FUNC_IMPORT |
|
45 #define EAP_C_FUNC_VISIBILITY_EAP_AM_MUTEX_SYMBIAN_H EAP_C_FUNC_IMPORT |
|
46 #define EAP_FUNC_EXPORT_EAP_AM_MUTEX_SYMBIAN_H |
|
47 #define EAP_C_FUNC_EXPORT_EAP_AM_MUTEX_SYMBIAN_H |
|
48 #endif |
|
49 // End: added by script change_export_macros.sh. |
29 #include "abs_eap_am_mutex.h" |
50 #include "abs_eap_am_mutex.h" |
30 |
51 |
31 // CLASS DECLARATION |
52 // CLASS DECLARATION |
32 class EAP_EXPORT eap_am_mutex_symbian_c |
53 class EAP_CLASS_VISIBILITY_EAP_AM_MUTEX_SYMBIAN_H eap_am_mutex_symbian_c |
33 : public abs_eap_am_mutex_c |
54 : public abs_eap_am_mutex_c |
34 , public eap_am_mutex_base_c |
55 , public eap_am_mutex_base_c |
35 { |
56 { |
36 private: |
57 private: |
37 |
58 |
47 eap_am_mutex_symbian_c(eap_am_mutex_symbian_c &source); |
68 eap_am_mutex_symbian_c(eap_am_mutex_symbian_c &source); |
48 const eap_am_mutex_symbian_c & operator=(const eap_am_mutex_symbian_c& source); |
69 const eap_am_mutex_symbian_c & operator=(const eap_am_mutex_symbian_c& source); |
49 |
70 |
50 public: |
71 public: |
51 |
72 |
52 EAP_FUNC_IMPORT virtual ~eap_am_mutex_symbian_c(); |
73 EAP_FUNC_VISIBILITY_EAP_AM_MUTEX_SYMBIAN_H virtual ~eap_am_mutex_symbian_c(); |
53 |
74 |
54 EAP_FUNC_IMPORT eap_am_mutex_symbian_c(); |
75 EAP_FUNC_VISIBILITY_EAP_AM_MUTEX_SYMBIAN_H eap_am_mutex_symbian_c(); |
55 |
76 |
56 EAP_FUNC_IMPORT eap_am_mutex_symbian_c(const eap_am_mutex_symbian_c * const owner); |
77 EAP_FUNC_VISIBILITY_EAP_AM_MUTEX_SYMBIAN_H eap_am_mutex_symbian_c(const eap_am_mutex_symbian_c * const owner); |
57 |
78 |
58 /// Function returns pointer to Symbian mutex. |
79 /// Function returns pointer to Symbian mutex. |
59 EAP_FUNC_IMPORT const RMutex * get_mutex() const; |
80 EAP_FUNC_VISIBILITY_EAP_AM_MUTEX_SYMBIAN_H const RMutex * get_mutex() const; |
60 |
81 |
61 /// Function returns pointer to owner thread of the mutex. |
82 /// Function returns pointer to owner thread of the mutex. |
62 EAP_FUNC_IMPORT const RThread * get_owner_thread() const; |
83 EAP_FUNC_VISIBILITY_EAP_AM_MUTEX_SYMBIAN_H const RThread * get_owner_thread() const; |
63 |
84 |
64 // See comments on abs_eap_am_mutex_c. |
85 // See comments on abs_eap_am_mutex_c. |
65 EAP_FUNC_IMPORT eap_status_e mutex_enter(); |
86 EAP_FUNC_VISIBILITY_EAP_AM_MUTEX_SYMBIAN_H eap_status_e mutex_enter(); |
66 |
87 |
67 // See comments on abs_eap_am_mutex_c. |
88 // See comments on abs_eap_am_mutex_c. |
68 EAP_FUNC_IMPORT eap_status_e mutex_leave(abs_eap_am_tools_c * const m_am_tools); |
89 EAP_FUNC_VISIBILITY_EAP_AM_MUTEX_SYMBIAN_H eap_status_e mutex_leave(abs_eap_am_tools_c * const m_am_tools); |
69 |
90 |
70 // The mutex handle must be dublicated in Symbian operating system for each thread. |
91 // The mutex handle must be dublicated in Symbian operating system for each thread. |
71 // See comments on abs_eap_am_mutex_c. |
92 // See comments on abs_eap_am_mutex_c. |
72 EAP_FUNC_IMPORT abs_eap_am_mutex_c * dublicate_mutex(); |
93 EAP_FUNC_VISIBILITY_EAP_AM_MUTEX_SYMBIAN_H abs_eap_am_mutex_c * dublicate_mutex(); |
73 |
94 |
74 // This is used in debug asserts. Those will check the mutex is really reserved when critical code is entered. |
95 // This is used in debug asserts. Those will check the mutex is really reserved when critical code is entered. |
75 // See comments on abs_eap_am_mutex_c. |
96 // See comments on abs_eap_am_mutex_c. |
76 EAP_FUNC_IMPORT bool get_is_reserved() const; |
97 EAP_FUNC_VISIBILITY_EAP_AM_MUTEX_SYMBIAN_H bool get_is_reserved() const; |
77 |
98 |
78 // See comments on abs_eap_am_mutex_c. |
99 // See comments on abs_eap_am_mutex_c. |
79 EAP_FUNC_IMPORT bool get_is_valid() const; |
100 EAP_FUNC_VISIBILITY_EAP_AM_MUTEX_SYMBIAN_H bool get_is_valid() const; |
80 |
101 |
81 // - - - - - - - - - - - - - - - - - - - - - - - - |
102 // - - - - - - - - - - - - - - - - - - - - - - - - |
82 |
103 |
83 }; |
104 }; |
84 |
105 |