Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
8e89295
dispatch: adjust the print specifies to avoid some warnings (NFCI)
compnerd Nov 12, 2021
b78af30
dispatch: silence a warning on Windows (NFC)
compnerd Nov 12, 2021
bd216a1
dispatch: make assertions LLP64 friendly (NFCI)
compnerd Nov 12, 2021
a72dfbd
dispatch: host declaration of `dispatch_pthread_root_queue_observer_h…
compnerd Nov 12, 2021
220b322
dispatch: adjust for LLP64 environments
compnerd Nov 12, 2021
26a5511
dispatch: follow `os/base.h` inclusion pattern
compnerd Nov 12, 2021
7b5aa71
dispatch: exclude workgroup support on non-Apple targets
compnerd Nov 12, 2021
28c3270
os: update unix and windows base.h
compnerd Nov 12, 2021
025bbb4
windows: add a shim for Windows
compnerd Nov 12, 2021
25758bd
dispatch: exclude some mach_port_t usage
compnerd Nov 12, 2021
811b4a1
time: explicitly size the time macros
compnerd Nov 12, 2021
e597c94
dispatch: use reserved spelling for `typeof`
compnerd Nov 12, 2021
093d3a8
private: use `dispatch_qos_class_t` rather than `qos_class_t`
compnerd Nov 12, 2021
48932f3
shims: convert `_dispatch_preemption_yeild` to an expression
compnerd Nov 12, 2021
c1f3660
os: replace `__header_always_inline` with `DISPATCH_ALWAYS_INLINE`
compnerd Nov 12, 2021
956c270
shims: add a definition for `os_atomic_init`
compnerd Nov 12, 2021
0bc1ee2
dispatch: use platform specific paths for setting thread names
compnerd Nov 12, 2021
d5455e1
shims: adopt `_os_atomic_auto_dependency` from osfmk
compnerd Nov 12, 2021
9502860
dispatch: repair the signal thread construction on Windows
compnerd Nov 19, 2021
1ba15ff
dispatch: remove an unused function
compnerd Nov 12, 2021
100c055
private: remove reference to mach.h
compnerd Nov 12, 2021
8979120
dispatch: repair the context for the cooperative root queue
compnerd Nov 13, 2021
fc4eb88
Block: adjust the type constructor for Windows
compnerd Nov 13, 2021
f251ab8
Queue: make the Swift overlay build again
compnerd Nov 13, 2021
9d366f9
Voucher portability fixes.
3405691582 Nov 13, 2021
7e99220
build: add an additional installed header
compnerd Nov 13, 2021
8ca15bc
Fix initializing of dispatch_block_flags_t.
3405691582 Nov 14, 2021
be92ae7
dispatch: explicitly cast to avoid truncation warning
compnerd Nov 19, 2021
c4c3516
dispatch: remove stray `void`
compnerd Nov 19, 2021
ef765a3
shims: add a new HAVE_WAIT_ON_ADDRESS and adopt in locks
compnerd Nov 19, 2021
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
dispatch: adjust the print specifies to avoid some warnings (NFCI)
This adjusts the dispatch debug logging to use to `%llx` for the conversion of some values. This avoids a format conversion warning on Windows.
  • Loading branch information
compnerd committed Nov 12, 2021
commit 8e892953f6918654eca76ce0ca66dda9dbd3e8db
4 changes: 2 additions & 2 deletions src/event/event.c
Original file line number Diff line number Diff line change
Expand Up @@ -760,9 +760,9 @@ _dispatch_timer_heap_update(dispatch_timer_heap_t dth,
#pragma mark timer unote

#define _dispatch_timer_du_debug(what, du) \
_dispatch_debug("kevent-source[%p]: %s kevent[%p] { ident = 0x%x }", \
_dispatch_debug("kevent-source[%p]: %s kevent[%p] { ident = 0x%llx }", \
_dispatch_wref2ptr((du)->du_owner_wref), what, \
(du), (du)->du_ident)
(du), (unsigned long long)(du)->du_ident)

DISPATCH_ALWAYS_INLINE
static inline unsigned int
Expand Down
4 changes: 2 additions & 2 deletions src/source.c
Original file line number Diff line number Diff line change
Expand Up @@ -1449,11 +1449,11 @@ _dispatch_source_debug_attr(dispatch_source_t ds, char* buf, size_t bufsiz)
dispatch_source_refs_t dr = ds->ds_refs;
dispatch_queue_flags_t dqf = _dispatch_queue_atomic_flags(ds);
dispatch_unote_state_t du_state = _dispatch_unote_state(dr);
return dsnprintf(buf, bufsiz, "target = %s[%p], ident = 0x%x, "
return dsnprintf(buf, bufsiz, "target = %s[%p], ident = 0x%llx, "
"mask = 0x%x, pending_data = 0x%llx, registered = %d, "
"armed = %d, %s%s%s",
target && target->dq_label ? target->dq_label : "", target,
dr->du_ident, dr->du_fflags, (unsigned long long)dr->ds_pending_data,
(unsigned long long)dr->du_ident, dr->du_fflags, (unsigned long long)dr->ds_pending_data,
_du_state_registered(du_state), _du_state_armed(du_state),
(dqf & DSF_CANCELED) ? "cancelled, " : "",
(dqf & DSF_NEEDS_EVENT) ? "needs-event, " : "",
Expand Down