haiku/headers/private/shared/AutoDeleterOS.h
X512 553f3f2309 AutoDeleter: add delarations for common types and destructors
Change-Id: I74b75a54038d5af370696302f33b5c0abab4820c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3481
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-12-13 19:14:13 +00:00

30 lines
538 B
C++

/*
* Copyright 2020, Haiku, Inc.
* Distributed under the terms of the MIT License.
*/
#ifndef _AUTO_DELETER_OS_H
#define _AUTO_DELETER_OS_H
#include <AutoDeleter.h>
#include <OS.h>
namespace BPrivate {
typedef HandleDeleter<area_id, status_t, delete_area> AreaDeleter;
typedef HandleDeleter<sem_id, status_t, delete_sem> SemDeleter;
typedef HandleDeleter<port_id, status_t, delete_port> PortDeleter;
}
using ::BPrivate::AreaDeleter;
using ::BPrivate::SemDeleter;
using ::BPrivate::PortDeleter;
#endif // _AUTO_DELETER_OS_H