mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
builds two libraries, Athena and Desktop. Simulation should use Desktop, Robots should use Athena Also: - copied Driverstation and Joystick from Devices into Sim - Descreased dependency of pthreads in JNI. - removed Simulation ifdef from non simulation - added missing decprecated attribute for msvc - removed usage reporting from sim - removed unused pom.xml and constexpr Change-Id: If8eb540f9434dce17c77a245fda6985713e80b2d
25 lines
582 B
C++
25 lines
582 B
C++
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include <mutex>
|
|
#include <condition_variable>
|
|
|
|
typedef std::mutex* MUTEX_ID;
|
|
typedef std::condition_variable* MULTIWAIT_ID;
|
|
typedef std::condition_variable::native_handle_type NATIVE_MULTIWAIT_ID;
|
|
|
|
extern "C"
|
|
{
|
|
MUTEX_ID initializeMutexNormal();
|
|
void deleteMutex(MUTEX_ID sem);
|
|
void takeMutex(MUTEX_ID sem);
|
|
bool tryTakeMutex(MUTEX_ID sem);
|
|
void giveMutex(MUTEX_ID sem);
|
|
|
|
MULTIWAIT_ID initializeMultiWait();
|
|
void deleteMultiWait(MULTIWAIT_ID sem);
|
|
void takeMultiWait(MULTIWAIT_ID sem, MUTEX_ID m);
|
|
void giveMultiWait(MULTIWAIT_ID sem);
|
|
}
|
|
|