这篇教程C++ ACE_NOTSUP_RETURN函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中ACE_NOTSUP_RETURN函数的典型用法代码示例。如果您正苦于以下问题:C++ ACE_NOTSUP_RETURN函数的具体用法?C++ ACE_NOTSUP_RETURN怎么用?C++ ACE_NOTSUP_RETURN使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了ACE_NOTSUP_RETURN函数的24个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: definedintACE_OS::sprintf (wchar_t *buf, const wchar_t *format, ...){ // ACE_OS_TRACE ("ACE_OS::sprintf");#if defined (ACE_LACKS_VA_FUNCTIONS) ACE_UNUSED_ARG (buf); ACE_UNUSED_ARG (format); ACE_NOTSUP_RETURN (-1);#else va_list ap; va_start (ap, format); int const result = ACE_OS::vsprintf (buf, format, ap); va_end (ap); return result;#endif /* ACE_LACKS_VA_FUNCTIONS */}
开发者ID:binary42,项目名称:OCI,代码行数:16,
示例2: ACE_TRACE// purge_pending_notifications// Removes all entries from the notify_queue_ and each one that// matches <eh> is put on the free_queue_. The rest are saved on a// local queue and copied back to the notify_queue_ at the end.// Returns the number of entries removed. Returns -1 on error.// ACE_NOTSUP_RETURN if ACE_HAS_REACTOR_NOTIFICATION_QUEUE is not defined.intACE_Select_Reactor_Notify::purge_pending_notifications (ACE_Event_Handler *eh, ACE_Reactor_Mask mask ){ ACE_TRACE ("ACE_Select_Reactor_Notify::purge_pending_notifications");#if defined (ACE_HAS_REACTOR_NOTIFICATION_QUEUE) return notification_queue_.purge_pending_notifications(eh, mask);#else /* defined (ACE_HAS_REACTOR_NOTIFICATION_QUEUE) */ ACE_UNUSED_ARG (eh); ACE_UNUSED_ARG (mask); ACE_NOTSUP_RETURN (-1);#endif /* defined (ACE_HAS_REACTOR_NOTIFICATION_QUEUE) */}
开发者ID:Desch,项目名称:MythCore,代码行数:22,
示例3: ACE_TRACEintACE_INET_Addr::set (const char port_name[], ACE_UINT32 inet_address, const char protocol[]){ ACE_TRACE ("ACE_INET_Addr::set"); int const port_number = get_port_number_from_name (port_name, protocol); if (port_number == -1) { ACE_NOTSUP_RETURN (-1); } return this->set (static_cast<u_short> (port_number), inet_address, 0);}
开发者ID:Akenyshka,项目名称:MythCore,代码行数:16,
示例4: ACE_UNUSED_ARGintACE_SSL_Context::egd_file (const char * socket_file){#if OPENSSL_VERSION_NUMBER < 0x00905100L // OpenSSL < 0.9.5 doesn't have EGD support. ACE_UNUSED_ARG (socket_file); ACE_NOTSUP_RETURN (-1);#else // RAND_egd() returns the amount of entropy used to seed the random // number generator. The actual value should be greater than 16, // i.e. 128 bits. if (::RAND_egd (socket_file) > 0) return 0; else return -1;#endif /* OPENSSL_VERSION_NUMBER >= 0x00905100L */}
开发者ID:kanbang,项目名称:Colt,代码行数:17,
示例5: definedintACE_Event_Handler::remove_stdin_handler (ACE_Reactor *reactor, ACE_Thread_Manager *thr_mgr){#if defined (ACE_WIN32) ACE_UNUSED_ARG (reactor); ACE_UNUSED_ARG (thr_mgr); // What should we do here? ACE_NOTSUP_RETURN (-1);#else // Keep compilers happy. ACE_UNUSED_ARG (thr_mgr); return reactor->remove_handler (ACE_STDIN, ACE_Event_Handler::READ_MASK);#endif /* ACE_WIN32 */}
开发者ID:jonathlela,项目名称:vast,代码行数:17,
示例6: ACE_OS_TRACElongACE_OS::num_processors (void){ ACE_OS_TRACE ("ACE_OS::num_processors");#if defined (ACE_HAS_PHARLAP) return 1;#elif defined (ACE_WIN32) || defined (ACE_WIN64) SYSTEM_INFO sys_info; ::GetSystemInfo (&sys_info); return sys_info.dwNumberOfProcessors;#elif defined (linux) || defined (sun) return ::sysconf (_SC_NPROCESSORS_CONF);#else ACE_NOTSUP_RETURN (-1);#endif}
开发者ID:BackupTheBerlios,项目名称:pyasynchio-svn,代码行数:17,
示例7: ACE_OS_TRACEFILE *ACE_OS::fopen (const wchar_t *filename, const ACE_TCHAR *mode){ ACE_OS_TRACE ("ACE_OS::fopen");#if defined (ACE_LACKS_FOPEN) ACE_UNUSED_ARG (filename); ACE_UNUSED_ARG (mode); ACE_NOTSUP_RETURN (0);#else int hmode = _O_TEXT; for (const ACE_TCHAR *mode_ptr = mode; *mode_ptr != 0; mode_ptr++) fopen_mode_to_open_mode_converter (*mode_ptr, hmode); ACE_HANDLE handle = ACE_OS::open (filename, hmode); if (handle != ACE_INVALID_HANDLE) { hmode &= _O_TEXT | _O_RDONLY | _O_APPEND; int const fd = ::_open_osfhandle (intptr_t (handle), hmode); if (fd != -1) {# if defined (ACE_HAS_NONCONST_FDOPEN) && !defined (ACE_USES_WCHAR) FILE *fp = ::_fdopen (fd, const_cast<char *> (mode));# elif defined (ACE_HAS_NONCONST_FDOPEN) && defined (ACE_USES_WCHAR) FILE *fp = ::_wfdopen (fd, const_cast<wchar_t *> (mode));# elif defined (ACE_USES_WCHAR) FILE *fp = ::_wfdopen (fd, mode);# else FILE *fp = ::fdopen (fd, mode);# endif /* defined(ACE_HAS_NONCONST_FDOPEN) && !defined (ACE_USES_WCHAR)) */ if (fp != 0) { return fp; } ::_close (fd); } ACE_OS::close (handle); } return 0;#endif}
开发者ID:binary42,项目名称:OCI,代码行数:45,
示例8: definedintACE_Sched_Params::previous_priority (const Policy policy, const int priority, const int scope){#if defined (ACE_HAS_WTHREADS) ACE_UNUSED_ARG (policy); ACE_UNUSED_ARG (scope); switch (priority) { case THREAD_PRIORITY_IDLE: return THREAD_PRIORITY_IDLE; case THREAD_PRIORITY_LOWEST: return THREAD_PRIORITY_IDLE; case THREAD_PRIORITY_BELOW_NORMAL: return THREAD_PRIORITY_LOWEST; case THREAD_PRIORITY_NORMAL: return THREAD_PRIORITY_BELOW_NORMAL; case THREAD_PRIORITY_ABOVE_NORMAL: return THREAD_PRIORITY_NORMAL; case THREAD_PRIORITY_HIGHEST: return THREAD_PRIORITY_ABOVE_NORMAL; case THREAD_PRIORITY_TIME_CRITICAL: return THREAD_PRIORITY_HIGHEST; default: return priority; // unknown priority: should never get here }#elif defined(ACE_HAS_THREADS) && / (!defined(ACE_LACKS_SETSCHED) || defined (ACE_TANDEM_T1248_PTHREADS) || / defined (ACE_HAS_PTHREAD_SCHEDPARAM)) // including STHREADS and PTHREADS int const min = priority_min (policy, scope); return priority > min ? priority - 1 : min;#elif defined (ACE_VXWORKS) return priority < priority_min (policy, scope) ? priority + 1 : priority_min (policy, scope);#else ACE_UNUSED_ARG (policy); ACE_UNUSED_ARG (scope); ACE_UNUSED_ARG (priority); ACE_NOTSUP_RETURN (-1);#endif /* ACE_HAS_THREADS */}
开发者ID:Denominator13,项目名称:NeoCore,代码行数:45,
示例9: ACE_UNUSED_ARGintACE_Shared_Memory_Pool::find_seg (const void* const searchPtr, ACE_OFF_T &offset, size_t &counter){#ifndef ACE_HAS_SYSV_IPC ACE_UNUSED_ARG (searchPtr); ACE_UNUSED_ARG (offset); ACE_UNUSED_ARG (counter); ACE_NOTSUP_RETURN (-1);#else offset = 0; SHM_TABLE *st = reinterpret_cast<SHM_TABLE *> (this->base_addr_); shmid_ds buf; for (counter = 0; counter < this->max_segments_ && st[counter].used_ == 1; counter++) { if (ACE_OS::shmctl (st[counter].shmid_, IPC_STAT, &buf) == -1) ACELIB_ERROR_RETURN ((LM_ERROR, ACE_TEXT ("(%P|%t) %p/n"), ACE_TEXT ("shmctl")), -1); offset += buf.shm_segsz; // If segment 'counter' starts at a location greater than the // place we are searching for. We then decrement the offset to // the start of counter-1. ([email C++ ACE_OS_TRACE函数代码示例 C++ ACE_NEW_RETURN函数代码示例
|