mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
This is a follow-up of 3cd1253. A C++ program was written to automate the license update originally. That program was translated to Python so it can be kept in the repository and run when needed. It has been tested on Windows using the standard Python 3 installation and on Linux.
The original version skipped files that had "//" at the beginning since most were files that should be excluded. The relevant files are now in an exclusion list and the rest are processed normally. The .hpp file extension has been added as well. The script rewrote CompressorJNI.cpp to remove the carriage returns from its line endings.
29 lines
1.1 KiB
C
29 lines
1.1 KiB
C
/*----------------------------------------------------------------------------*/
|
|
/* Copyright (c) FIRST 2016. All Rights Reserved. */
|
|
/* Open Source Software - may be modified and shared by FRC teams. The code */
|
|
/* must be accompanied by the FIRST BSD license file in the root directory of */
|
|
/* the project. */
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
#pragma once
|
|
|
|
#include "cpp/priority_condition_variable.h"
|
|
#include "cpp/priority_mutex.h"
|
|
|
|
typedef priority_mutex* MUTEX_ID;
|
|
typedef priority_condition_variable* MULTIWAIT_ID;
|
|
typedef priority_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);
|
|
}
|