Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions doc/developer-guide/api/functions/TSContCreate.en.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,8 @@ Synopsis

Description
===========
Creates a continuation, which can be destroyed with :func:`TSContDestroy`.
**Note:** when a mutex is passed to a call to this function, it creates a
reference to the mutex. The mutex will be destroyed when the number of
continuations refering to it becomes zero (due to calls to :func:`TSContDestroy`).
:func:`TSMutexDestroy` must not be called for the mutex.
4 changes: 3 additions & 1 deletion doc/developer-guide/api/functions/TSMutexDestroy.en.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,6 @@ Description
===========

Destroys the indicated :arg:`mutex` previously created via
:func:`TSMutexCreate`.
:func:`TSMutexCreate`. **Note:** Do not call this function for a mutex that
was passed to :func:`TSContCreate` as a parameter. It will be destroyed by call(s)
to :func:`TSContDestroy`.
1 change: 1 addition & 0 deletions iocore/eventsystem/UnixEThread.cc
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ EThread::process_event(Event *e, int calling_code)
EventQueueExternal.enqueue_local(e);
} else {
if (e->cancelled) {
MUTEX_RELEASE(lock);
free_event(e);
return;
}
Expand Down