Skip to content

Commit 995c6d4

Browse files
committed
Fix misspellings
Fix minor typos on a files in ./dispatch and ./private.
1 parent 64009c5 commit 995c6d4

9 files changed

+11
-11
lines changed

dispatch/io.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ __BEGIN_DECLS
3838
* The application may set policies on the dispatch I/O channel to indicate the
3939
* desired frequency of I/O handlers for long-running operations.
4040
*
41-
* Dispatch I/O also provides a memory managment model for I/O buffers that
41+
* Dispatch I/O also provides a memory management model for I/O buffers that
4242
* avoids unnecessary copying of data when pipelined between channels. Dispatch
4343
* I/O monitors the overall memory pressure and I/O access patterns for the
4444
* application to optimize resource utilization.
@@ -168,7 +168,7 @@ DISPATCH_DECL(dispatch_io);
168168
* bytes. Read and write operations on a channel of this type are performed
169169
* serially (in order of creation) and read/write data at the file pointer
170170
* position that is current at the time the operation starts executing.
171-
* Operations of different type (read vs. write) may be perfomed simultaneously.
171+
* Operations of different type (read vs. write) may be performed simultaneously.
172172
* Offsets passed to operations on a channel of this type are ignored.
173173
*
174174
* @const DISPATCH_IO_RANDOM A dispatch I/O channel representing a random

dispatch/queue.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -920,7 +920,7 @@ dispatch_barrier_sync_f(dispatch_queue_t queue,
920920
* The key to set the context for, typically a pointer to a static variable
921921
* specific to the subsystem. Keys are only compared as pointers and never
922922
* dereferenced. Passing a string constant directly is not recommended.
923-
* The NULL key is reserved and attemps to set a context for it are ignored.
923+
* The NULL key is reserved and attempts to set a context for it are ignored.
924924
*
925925
* @param context
926926
* The new subsystem-specific context for the object. This may be NULL.

dispatch/semaphore.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ __BEGIN_DECLS
4444
*
4545
* @discussion
4646
* Passing zero for the value is useful for when two threads need to reconcile
47-
* the completion of a particular event. Passing a value greather than zero is
47+
* the completion of a particular event. Passing a value greater than zero is
4848
* useful for managing a finite pool of resources, where the pool size is equal
4949
* to the value.
5050
*

dispatch/source.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ __BEGIN_DECLS
6464
* is being monitored by the dispatch source. Constants of this type are
6565
* passed as a parameter to dispatch_source_create() and determine how the
6666
* handle argument is interpreted (i.e. as a file descriptor, mach port,
67-
* signal number, process identifer, etc.), and how the mask arugment is
67+
* signal number, process identifier, etc.), and how the mask argument is
6868
* interpreted.
6969
*/
7070
typedef const struct dispatch_source_type_s *dispatch_source_type_t;

dispatch/time.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ dispatch_time(dispatch_time_t when, int64_t delta);
102102
* On Mac OS X the wall clock is based on gettimeofday(3).
103103
*
104104
* @param when
105-
* A struct timespect to add time to. If NULL is passed, then
105+
* A struct timespec to add time to. If NULL is passed, then
106106
* dispatch_walltime() will use the result of gettimeofday(3).
107107
*
108108
* @param delta

private/data_private.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ dispatch_data_apply_f(dispatch_data_t data, void *context,
159159
*
160160
* @param data The data object to make a memory entry for.
161161
* @result A mach port for the newly made memory entry, or
162-
* MACH_PORT_NULL if an error ocurred.
162+
* MACH_PORT_NULL if an error occurred.
163163
*/
164164
__OSX_AVAILABLE_STARTING(__MAC_10_9,__IPHONE_6_0)
165165
DISPATCH_EXPORT DISPATCH_NONNULL_ALL DISPATCH_NOTHROW
@@ -286,7 +286,7 @@ DISPATCH_DATA_FORMAT_TYPE_DECL(utf_any);
286286
* Flags specifying the input format of the source dispatch_data_t
287287
*
288288
* @param output_type
289-
* Flags specifying the expected output format of the resulting transfomation.
289+
* Flags specifying the expected output format of the resulting transformation.
290290
*
291291
* @result
292292
* A newly created dispatch data object, dispatch_data_empty if no has been

private/introspection_private.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ typedef void (*dispatch_introspection_hook_queue_item_complete_t)(
535535
* @typedef dispatch_introspection_hooks_s
536536
*
537537
* @abstract
538-
* A structure of function pointer hoooks into libdispatch.
538+
* A structure of function pointer hooks into libdispatch.
539539
*/
540540

541541
typedef struct dispatch_introspection_hooks_s {

private/voucher_activity_private.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ voucher_activity_start_with_location(voucher_activity_trace_id_t trace_id,
198198
* @function voucher_activity_end
199199
*
200200
* @abstract
201-
* Unmarks the current thread if it is marked as particpating in the activity
201+
* Unmarks the current thread if it is marked as participating in the activity
202202
* with the specified identifier.
203203
*
204204
* @discussion

private/voucher_private.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ voucher_replace_default_voucher(void);
151151
*
152152
* @discussion
153153
* This is only intended for use by CoreFoundation to explicitly manage the
154-
* App Nap state of an application following receiption of a de-nap IPC message.
154+
* App Nap state of an application following reception of a de-nap IPC message.
155155
*
156156
* CAUTION: Do NOT use this SPI without contacting the Darwin Runtime team.
157157
*/

0 commit comments

Comments
 (0)