Skip to content

Commit

Permalink
todo semaphore
Browse files Browse the repository at this point in the history
  • Loading branch information
Neko-Life committed Apr 14, 2024
1 parent 50e8c33 commit 990c50a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions include/musicat/child.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
#define MUSICAT_CHILD_H

#include <string>
#ifdef _WIN32

#ifdef WIN32
#include <windows.h>
#else
#include <semaphore.h>
#endif
Expand Down Expand Up @@ -31,7 +32,6 @@ void shutdown ();
// should be called by parent process
std::string get_sem_key (const std::string &key);

#ifdef _SEMAPHORE_H
// should be called by parent process
sem_t *create_sem (const std::string &full_key);

Expand All @@ -42,7 +42,6 @@ int clear_sem (sem_t *sem, const std::string &full_key);

// should be called by parent process
int do_sem_wait (sem_t *sem, const std::string &full_key);
#endif

} // child
} // musicat
Expand Down

0 comments on commit 990c50a

Please sign in to comment.