1 /* 2 * Copyright 2020, Haiku, Inc. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef _AUTO_DELETER_OS_H 6 #define _AUTO_DELETER_OS_H 7 8 9 #include <AutoDeleter.h> 10 #include <OS.h> 11 12 13 namespace BPrivate { 14 15 16 typedef HandleDeleter<area_id, status_t, delete_area> AreaDeleter; 17 typedef HandleDeleter<sem_id, status_t, delete_sem> SemDeleter; 18 typedef HandleDeleter<port_id, status_t, delete_port> PortDeleter; 19 20 21 } 22 23 24 using ::BPrivate::AreaDeleter; 25 using ::BPrivate::SemDeleter; 26 using ::BPrivate::PortDeleter; 27 28 29 #endif // _AUTO_DELETER_OS_H 30