Fixed some typos, courtesy of codespell
Main change is the conversion from the British cancelling/-ed to the American canceling/-ed.
This commit is contained in:
@@ -186,12 +186,12 @@ static void update(private_watcher_t *this)
|
||||
}
|
||||
|
||||
/**
|
||||
* Cleanup function if callback gets cancelled
|
||||
* Cleanup function if callback gets canceled
|
||||
*/
|
||||
static void unregister(notify_data_t *data)
|
||||
{
|
||||
/* if a thread processing a callback gets cancelled, we mark the entry
|
||||
* as cancelled, like the callback would return FALSE. This is required
|
||||
/* if a thread processing a callback gets canceled, we mark the entry
|
||||
* as canceled, like the callback would return FALSE. This is required
|
||||
* to not queue this watcher again if all threads have been gone. */
|
||||
data->keep = FALSE;
|
||||
}
|
||||
@@ -276,7 +276,7 @@ static void activate_all(private_watcher_t *this)
|
||||
{
|
||||
entry_t *entry;
|
||||
|
||||
/* When the watcher thread gets cancelled, we have to reactivate any entry
|
||||
/* When the watcher thread gets canceled, we have to reactivate any entry
|
||||
* and signal threads in remove() to go on. */
|
||||
|
||||
this->mutex->lock(this->mutex);
|
||||
@@ -398,7 +398,7 @@ static job_requeue_t watch(private_watcher_t *this)
|
||||
if (res == -1 && errno == EINTR)
|
||||
{
|
||||
/* LinuxThreads interrupts poll(), but does not make it a
|
||||
* cancellation point. Manually test if we got cancelled. */
|
||||
* cancellation point. Manually test if we got canceled. */
|
||||
thread_cancellation_point();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user