mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-07 01:06:45 +08:00
28 lines
475 B
C++
28 lines
475 B
C++
|
|
#include "libimp/log.h"
|
|
|
|
#include "libimp/detect_plat.h"
|
|
#if defined(LIBIMP_OS_WIN)
|
|
# include "libipc/platform/win/event_impl.h"
|
|
#else
|
|
#endif
|
|
|
|
#if !defined(LIBIMP_OS_LINUX)
|
|
LIBIPC_NAMESPACE_BEG_
|
|
|
|
/// \brief C style event access interface implementation.
|
|
|
|
std::string evt_name(evt_t evt) noexcept {
|
|
LIBIMP_LOG_();
|
|
if (!is_valid(evt)) {
|
|
log.error("handle is null.");
|
|
return {};
|
|
}
|
|
return evt->name;
|
|
}
|
|
|
|
/// \brief The event object.
|
|
|
|
LIBIPC_NAMESPACE_END_
|
|
#endif
|