Skip to content

Commit

Permalink
Add temporary locking messages
Browse files Browse the repository at this point in the history
Signed-off-by: DL6ER <[email protected]>
  • Loading branch information
DL6ER committed Feb 11, 2025
1 parent d2f6d1a commit 5171c2d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tools/dhcp-discover.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,13 @@ static pthread_mutex_t lock;
void start_lock(void)
{
pthread_mutex_init(&lock, NULL);
printf("***LOCKED***");
}

void end_lock(void)
{
pthread_mutex_destroy(&lock);
printf("***UNLOCKED***");
}

static void __attribute__((format(printf, 1, 2))) printf_locked(const char *format, ...)
Expand Down

0 comments on commit 5171c2d

Please sign in to comment.