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
7 changes: 5 additions & 2 deletions .github/workflows/ci-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,18 @@ jobs:
timeout-minutes: 5
runs-on: windows-2022
name: CI-windows (build)
strategy:
matrix:
build_type: [Release, Debug]

steps:
- uses: actions/checkout@v2

- name: Configure build system
run: |
cmake --version
cmake -S . -B build_x64 -A x64 -G "Visual Studio 17 2022" -DSTATICLIB=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_VERBOSE_MAKEFILE=ON
cmake -S . -B build_x64 -A x64 -G "Visual Studio 17 2022" -DSTATICLIB=ON -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_VERBOSE_MAKEFILE=ON

- name: Build libkqueue
run: |
cmake --build build_x64 --target install --config Release --parallel 1
cmake --build build_x64 --target install --config ${{ matrix.build_type }} --parallel 1
9 changes: 9 additions & 0 deletions src/common/debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,14 @@ typedef struct {
} \
} while (0)

#ifdef _WIN32
# define tracing_mutex_unlock(x) do { \
(x)->mtx_status = MTX_UNLOCKED; \
(x)->mtx_owner = -1; \
pthread_mutex_unlock(&((x)->mtx_lock)); \
dbg_printf("[%i]: unlocked %s", __LINE__, # x); \
} while (0)
#else
# define tracing_mutex_unlock(x) do { \
(x)->mtx_status = MTX_UNLOCKED; \
(x)->mtx_owner = -1; \
Expand All @@ -153,6 +161,7 @@ typedef struct {
}; \
dbg_printf("[%i]: unlocked %s", __LINE__, # x); \
} while (0)
#endif

typedef void (*dbg_func_t)(char const *fmt, ...);

Expand Down
Loading