Skip to content

Commit

Permalink
Windows: add mutex_enter_interruptible()
Browse files Browse the repository at this point in the history
Signed-off-by: Jorgen Lundman <lundman@lundman.net>
  • Loading branch information
lundman committed Dec 12, 2023
1 parent bf4f2ee commit b3b80a2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/os/windows/spl/sys/mutex.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,13 @@ void spl_mutex_init(kmutex_t *mp, char *name, kmutex_type_t type, void *ibc);
#define mutex_enter spl_mutex_enter
void spl_mutex_enter(kmutex_t *mp);

/* Until we can investigate interruptible on Windows */
static inline int mutex_enter_interruptible(kmutex_t *mp)
{
spl_mutex_enter(mp);
return (0);
}

#define mutex_enter_nested(A, B) mutex_enter(A)
#define MUTEX_NOLOCKDEP 0

Expand Down

0 comments on commit b3b80a2

Please sign in to comment.