Top | ![]() |
![]() |
![]() |
![]() |
|
e_cancellable_mutex_init () |
|
e_cancellable_mutex_clear () |
|
e_cancellable_mutex_lock () |
|
e_cancellable_mutex_unlock () |
|
e_cancellable_mutex_get_internal_mutex () |
|
e_cancellable_rec_mutex_init () |
|
e_cancellable_rec_mutex_clear () |
|
e_cancellable_rec_mutex_lock () |
|
e_cancellable_rec_mutex_unlock () |
An ECancellableMutex and an ECancellableRecMutex are similar to
GLib's GCancellable
instance, thus the waiting for a lock
can be cancelled any time.
void e_cancellable_mutex_init (ECancellableMutex *mutex
);
e_cancellable_mutex_init
has been deprecated since version 3.12 and should not be used in newly-written code.
If you think you need this, you're using mutexes wrong.
Initializes mutex
structure.
Since: 3.8
void e_cancellable_mutex_clear (ECancellableMutex *mutex
);
e_cancellable_mutex_clear
has been deprecated since version 3.12 and should not be used in newly-written code.
If you think you need this, you're using mutexes wrong.
Frees memory allocated by e_cancellable_mutex_init()
.
Since: 3.8
gboolean e_cancellable_mutex_lock (ECancellableMutex *mutex
,);
GCancellable *cancellable
e_cancellable_mutex_lock
has been deprecated since version 3.12 and should not be used in newly-written code.
If you think you need this, you're using mutexes wrong.
Acquires lock on mutex
. The returned value indicates whether
the lock was acquired, while FALSE
cancellable
had been cancelled.
In case of NULL
cancellable
the function blocks like g_mutex_lock()
Since: 3.8
void e_cancellable_mutex_unlock (ECancellableMutex *mutex
);
e_cancellable_mutex_unlock
has been deprecated since version 3.12 and should not be used in newly-written code.
If you think you need this, you're using mutexes wrong.
Releases lock previously acquired by e_cancellable_mutex_lock()
.
Behaviour is undefined if this is called on a mutex
which returned
FALSE
e_cancellable_mutex_lock()
.
Since: 3.8
GMutex * e_cancellable_mutex_get_internal_mutex (ECancellableMutex *mutex
);
e_cancellable_mutex_get_internal_mutex
has been deprecated since version 3.12 and should not be used in newly-written code.
If you think you need this, you're using mutexes wrong.
To get internal g_cond_wait()
g_cond_wait_until()
Since: 3.8
void e_cancellable_rec_mutex_init (ECancellableRecMutex *rec_mutex
);
e_cancellable_rec_mutex_init
has been deprecated since version 3.12 and should not be used in newly-written code.
If you think you need this, you're using mutexes wrong.
Initializes rec_mutex
structure.
Since: 3.8
void e_cancellable_rec_mutex_clear (ECancellableRecMutex *rec_mutex
);
e_cancellable_rec_mutex_clear
has been deprecated since version 3.12 and should not be used in newly-written code.
If you think you need this, you're using mutexes wrong.
Frees memory allocated by e_cancellable_rec_mutex_init()
.
Since: 3.8
gboolean e_cancellable_rec_mutex_lock (ECancellableRecMutex *rec_mutex
,);
GCancellable *cancellable
e_cancellable_rec_mutex_lock
has been deprecated since version 3.12 and should not be used in newly-written code.
If you think you need this, you're using mutexes wrong.
Acquires lock on rec_mutex
. The returned value indicates whether
the lock was acquired, while FALSE
cancellable
had been cancelled.
In case of NULL
cancellable
the function blocks like g_rec_mutex_lock()
rec_mutex |
an ECancellableRecMutex instance |
|
cancellable |
a |
[allow-none] |
Since: 3.8
void e_cancellable_rec_mutex_unlock (ECancellableRecMutex *rec_mutex
);
e_cancellable_rec_mutex_unlock
has been deprecated since version 3.12 and should not be used in newly-written code.
If you think you need this, you're using mutexes wrong.
Releases lock previously acquired by e_cancellable_rec_mutex_lock()
.
Behaviour is undefined if this is called on a rec_mutex
which returned
FALSE
e_cancellable_rec_mutex_lock()
.
Since: 3.8
struct ECancellableLocksBase { GMutex cond_mutex; GCond cond; };
ECancellableLocksBase
is deprecated and should not be used in newly-written code.
struct ECancellableMutex { struct _ECancellableLocksBase base; GMutex mutex; };
ECancellableMutex
is deprecated and should not be used in newly-written code.