Home
last modified time | relevance | path

Searched +full:config +full:- +full:cond (Results 1 – 25 of 126) sorted by relevance

123456

/freebsd/contrib/ntp/sntp/libevent/
H A Devthread_pthread.c2 * Copyright 2009-2012 Niels Provos and Nick Mathewson
26 #include "event2/event-config.h"
27 #include "evconfig-private.h"
30 * This comes from evconfig-private.h
39 #include "mm-internal.h"
40 #include "evthread-internal.h"
106 pthread_cond_t *cond = mm_malloc(sizeof(pthread_cond_t)); in evthread_posix_cond_alloc() local
107 if (!cond) in evthread_posix_cond_alloc()
109 if (pthread_cond_init(cond, NULL)) { in evthread_posix_cond_alloc()
110 mm_free(cond); in evthread_posix_cond_alloc()
[all …]
H A Devthread_win32.c2 * Copyright 2009-2012 Niels Provos and Nick Mathewson
26 #include "event2/event-config.h"
27 #include "evconfig-private.h"
44 #include "mm-internal.h"
45 #include "evthread-internal.h"
46 #include "time-internal.h"
130 CONDITION_VARIABLE *cond = mm_malloc(sizeof(CONDITION_VARIABLE)); in evthread_win32_condvar_alloc() local
131 if (!cond) in evthread_win32_condvar_alloc()
133 InitializeConditionVariable_fn(cond); in evthread_win32_condvar_alloc()
134 return cond; in evthread_win32_condvar_alloc()
[all …]
H A Devthread-internal.h2 * Copyright (c) 2008-2012 Niels Provos, Nick Mathewson
33 #include "event2/event-config.h"
34 #include "evconfig-private.h"
37 #include "util-internal.h"
43 * have shared global structures. Thus, we only do the direct-call-to-function
50 /* Global function pointers to lock-related functions. NULL if locking isn't
68 (base)->th_owner_id == evthread_id_fn_())
75 (base)->running_loop && \
76 (base)->th_owner_id != evthread_id_fn_())
119 EVLOCK_LOCK((base)->lockvar, 0); \
[all …]
/freebsd/contrib/libevent/
H A Devthread_pthread.c2 * Copyright 2009-2012 Niels Provos and Nick Mathewson
26 #include "event2/event-config.h"
27 #include "evconfig-private.h"
30 * This comes from evconfig-private.h
39 #include "mm-internal.h"
40 #include "evthread-internal.h"
106 pthread_cond_t *cond = mm_malloc(sizeof(pthread_cond_t)); in evthread_posix_cond_alloc() local
107 if (!cond) in evthread_posix_cond_alloc()
109 if (pthread_cond_init(cond, NULL)) { in evthread_posix_cond_alloc()
110 mm_free(cond); in evthread_posix_cond_alloc()
[all …]
H A Devthread_win32.c2 * Copyright 2009-2012 Niels Provos and Nick Mathewson
26 #include "event2/event-config.h"
27 #include "evconfig-private.h"
44 #include "mm-internal.h"
45 #include "evthread-internal.h"
46 #include "time-internal.h"
130 CONDITION_VARIABLE *cond = mm_malloc(sizeof(CONDITION_VARIABLE)); in evthread_win32_condvar_alloc() local
131 if (!cond) in evthread_win32_condvar_alloc()
133 InitializeConditionVariable_fn(cond); in evthread_win32_condvar_alloc()
134 return cond; in evthread_win32_condvar_alloc()
[all …]
H A Devthread-internal.h2 * Copyright (c) 2008-2012 Niels Provos, Nick Mathewson
33 #include "event2/event-config.h"
34 #include "evconfig-private.h"
37 #include "util-internal.h"
43 * have shared global structures. Thus, we only do the direct-call-to-function
50 /* Global function pointers to lock-related functions. NULL if locking isn't
68 (base)->th_owner_id == evthread_id_fn_())
75 (base)->running_loop && \
76 (base)->th_owner_id != evthread_id_fn_())
119 EVLOCK_LOCK((base)->lockvar, 0); \
[all …]
/freebsd/contrib/ntp/libntp/lib/isc/win32/
H A Dcondition.c3 * Copyright (C) 1998-2001 Internet Software Consortium.
20 #include <config.h>
32 isc_condition_init(isc_condition_t *cond) { in isc_condition_init() argument
35 REQUIRE(cond != NULL); in isc_condition_init()
37 cond->waiters = 0; in isc_condition_init()
46 cond->events[LSIGNAL] = h; in isc_condition_init()
52 ISC_LIST_INIT(cond->threadlist); in isc_condition_init()
74 * Create the thread-specific handle in register_thread()
85 newthread->handle[LSIGNAL] = gblcond->events[LSIGNAL]; in register_thread()
86 newthread->handle[LBROADCAST] = hc; in register_thread()
[all …]
/freebsd/contrib/atf/atf-c/detail/
H A Dsanity.c26 #include "atf-c/detail/sanity.h"
29 #include "config.h"
59 atf_sanity_inv(const char *file, int line, const char *cond) in atf_sanity_inv() argument
61 fail("Invariant check failed at %s:%d: %s", file, line, cond); in atf_sanity_inv()
65 atf_sanity_pre(const char *file, int line, const char *cond) in atf_sanity_pre() argument
67 fail("Precondition check failed at %s:%d: %s", file, line, cond); in atf_sanity_pre()
71 atf_sanity_post(const char *file, int line, const char *cond) in atf_sanity_post() argument
73 fail("Postcondition check failed at %s:%d: %s", file, line, cond); in atf_sanity_post()
H A Dsanity_test.c26 #include "atf-c/detail/sanity.h"
29 #include "config.h"
41 #include <atf-c.h>
43 #include "atf-c/detail/dynstr.h"
44 #include "atf-c/detail/process.h"
45 #include "atf-c/detail/test_helpers.h"
47 /* ---------------------------------------------------------------------
49 * --------------------------------------------------------------------- */
66 switch (td->m_type) { in do_test_child()
68 INV(td->m_cond); in do_test_child()
[all …]
/freebsd/contrib/openbsm/libbsm/
H A Dbsm_notify.c1 /*-
2 * Copyright (c) 2004-2009 Apple Inc.
35 #include <config/config.h>
93 return ((notify_cancel(token) == NOTIFY_STATUS_OK) ? 0 : -1); in au_notify_terminate()
100 * On error of any notify(3) call, reset 'au_cond' to ensure we re-run
101 * au_notify_initialize() next time 'round--but assume auditing is on. This
166 int cond; in cannot_audit()
168 if (audit_get_cond(&cond) != 0) { in cannot_audit()
175 if (cond == AUC_NOAUDIT || cond == AUC_DISABLED) in cannot_audit()
/freebsd/contrib/bmake/
H A DFILES5 Makefile.config.in
15 boot-strap
16 bsd.after-import.mk
20 cond.c
21 config.h.in
35 install-sh
42 make-bootstrap.sh.in
43 make-conf.h
73 unit-tests/Makefile
74 unit-tests/Makefile.config.in
[all …]
/freebsd/contrib/ntp/libntp/lib/isc/
H A Dassertions.c2 * Copyright (C) 2004, 2005, 2007-2009 Internet Systems Consortium, Inc. ("ISC")
3 * Copyright (C) 1997-2001 Internet Software Consortium.
22 #include <config.h>
55 const char *cond) in isc_assertion_failed() argument
57 isc_assertion_failed_cb(file, line, type, cond); in isc_assertion_failed()
106 const char *cond) in default_callback() argument
119 file, line, isc_assertion_typetotext(type), cond, in default_callback()
/freebsd/contrib/ofed/opensm/complib/
H A Dcl_threadpool.c2 * Copyright (c) 2004-2007 Voltaire, Inc. All rights reserved.
3 * Copyright (c) 2002-2005 Mellanox Technologies LTD. All rights reserved.
4 * Copyright (c) 1996-2003 Intel Corporation. All rights reserved.
16 * - Redistributions of source code must retain the above
20 * - Redistributions in binary form must reproduce the above
43 # include <config.h>
53 pthread_mutex_unlock(&((cl_thread_pool_t *) arg)->mutex); in cleanup_mutex()
61 pthread_mutex_lock(&p_thread_pool->mutex); in thread_pool_routine()
63 while (!p_thread_pool->events) in thread_pool_routine()
64 pthread_cond_wait(&p_thread_pool->cond, in thread_pool_routine()
[all …]
H A Dcl_timer.c2 * Copyright (c) 2004-2006 Voltaire, Inc. All rights reserved.
3 * Copyright (c) 2002-2005 Mellanox Technologies LTD. All rights reserved.
4 * Copyright (c) 1996-2003 Intel Corporation. All rights reserved.
16 * - Redistributions of source code must retain the above
20 * - Redistributions in binary form must reproduce the above
43 # include <config.h>
57 pthread_cond_t cond; member
83 cl_qlist_init(&gp_timer_prov->queue); in __cl_timer_prov_create()
85 pthread_mutex_init(&gp_timer_prov->mutex, NULL); in __cl_timer_prov_create()
86 pthread_cond_init(&gp_timer_prov->cond, NULL); in __cl_timer_prov_create()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DParallel.cpp1 //===- llvm/Support/Parallel.cpp - Parallel algorithms --------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
10 #include "llvm/Config/llvm-config.h"
79 Cond.notify_all(); in stop()
97 static void call(void *Ptr) { ((ThreadPoolExecutor *)Ptr)->stop(); } in call()
105 Cond.notify_one(); in add()
116 Cond.wait(Lock, [&] { return Stop || !WorkStack.empty(); }); in work()
129 std::condition_variable Cond; member in llvm::parallel::detail::__anoncc39f2690111::ThreadPoolExecutor
164 return detail::Executor::getDefaultExecutor()->getThreadCount(); in getThreadCount()
[all …]
/freebsd/contrib/ntp/sntp/libevent/sample/
H A Dhttp-connect.c1 #include "event2/event-config.h"
11 #define VERIFY(cond) do { \ argument
12 if (!(cond)) { \
13 fprintf(stderr, "[error] %s\n", #cond); \
44 evhttp_uri_set_port(path, -1); in uri_path()
74 struct evhttp_connection *evcon = base->evcon; in connect_cb()
75 struct evhttp_uri *location = base->location; in connect_cb()
83 evhttp_add_header(req->output_headers, "Connection", "close"); in connect_cb()
84 evhttp_add_header(req->output_headers, "Host", evhttp_uri_get_host(location)); in connect_cb()
118 evhttp_add_header(req->output_headers, "Connection", "keep-alive"); in main()
[all …]
/freebsd/contrib/libevent/sample/
H A Dhttp-connect.c1 #include "event2/event-config.h"
11 #define VERIFY(cond) do { \ argument
12 if (!(cond)) { \
13 fprintf(stderr, "[error] %s\n", #cond); \
44 evhttp_uri_set_port(path, -1); in uri_path()
74 struct evhttp_connection *evcon = base->evcon; in connect_cb()
75 struct evhttp_uri *location = base->location; in connect_cb()
83 evhttp_add_header(req->output_headers, "Connection", "close"); in connect_cb()
84 evhttp_add_header(req->output_headers, "Host", evhttp_uri_get_host(location)); in connect_cb()
118 evhttp_add_header(req->output_headers, "Connection", "keep-alive"); in main()
[all …]
/freebsd/contrib/atf/atf-c++/
H A Dmacros_test.cpp26 #include "atf-c++/macros.hpp"
38 #include <atf-c++.hpp>
40 #include "atf-c++/detail/fs.hpp"
41 #include "atf-c++/detail/process.hpp"
42 #include "atf-c++/detail/sanity.hpp"
43 #include "atf-c++/detail/test_helpers.hpp"
44 #include "atf-c++/detail/text.hpp"
45 #include "atf-c++/utils.hpp"
47 // ------------------------------------------------------------------------
49 // ------------------------------------------------------------------------
[all …]
/freebsd/contrib/ntp/sntp/libevent/test/
H A Dregress_thread.c2 * Copyright (c) 2007-2012 Niels Provos and Nick Mathewson
26 #include "util-internal.h"
31 #include "event2/event-config.h"
61 #include "evthread-internal.h"
62 #include "event-internal.h"
63 #include "defer-internal.h"
66 #include "time-internal.h"
71 void *cond; member
78 EVLOCK_LOCK(cw->lock, 0); in wake_all_timeout()
79 EVTHREAD_COND_BROADCAST(cw->cond); in wake_all_timeout()
[all …]
/freebsd/contrib/libevent/test/
H A Dregress_thread.c2 * Copyright (c) 2007-2012 Niels Provos and Nick Mathewson
26 #include "util-internal.h"
31 #include "event2/event-config.h"
61 #include "evthread-internal.h"
62 #include "event-internal.h"
63 #include "defer-internal.h"
66 #include "time-internal.h"
71 void *cond; member
78 EVLOCK_LOCK(cw->lock, 0); in wake_all_timeout()
79 EVTHREAD_COND_BROADCAST(cw->cond); in wake_all_timeout()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DBranchRelaxation.cpp1 //===- BranchRelaxation.cpp ---------
323 SmallVector<MachineOperand, 4> Cond; fixupConditionalBranch() local
334 __anon6cb7e2b90302(MachineBasicBlock *MBB, MachineBasicBlock *TBB, MachineBasicBlock *FBB, SmallVectorImpl<MachineOperand>& Cond) fixupConditionalBranch() argument
458 SmallVector<MachineOperand, 4> Cond; fixupUnconditionalBranch() local
[all...]
/freebsd/contrib/ofed/libibverbs/
H A Ddevice.c15 * - Redistributions of source code must retain the above
19 * - Redistributions in binary form must reproduce the above
34 #include <config.h>
47 /* Hack to avoid GCC's -Wmissing-prototypes and the similar error from sparse
81 errno = -num_devices; in __ibv_get_device_list()
108 return device->name; in __ibv_get_device_name()
119 if (ibv_read_sysfs_file(device->ibdev_path, "node_guid", in __ibv_get_device_guid()
140 cq->context = context; in verbs_init_cq()
141 cq->channel = channel; in verbs_init_cq()
143 err = pthread_mutex_init(&cq->mutex, NULL); in verbs_init_cq()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DParallel.h1 //===- llvm/Support/Parallel.h - Parallel algorithms ----------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
13 #include "llvm/Config/llvm-config.h"
62 mutable std::condition_variable Cond; variable
78 if (--Count == 0) in dec()
79 Cond.notify_all(); in dec()
84 Cond.wait(lock, [&] { return Count == 0; }); in sync()
118 return Comp(*Start, *(End - 1)) in medianOf3()
119 ? (Comp(*Mid, *(End - 1)) ? (Comp(*Start, *Mid) ? Mid : Start) in medianOf3()
[all …]
/freebsd/contrib/ntp/sntp/libevent/include/event2/
H A Dthread.h2 * Copyright (c) 2008-2012 Niels Provos and Nick Mathewson
31 Functions for multi-threaded applications using Libevent.
33 When using a multi-threaded application in which multiple threads
37 Like the memory-management function hooks, all of the threading functions
55 #include <event2/event-config.h>
63 * read-write lock, and we want to acquire or release the lock for writing. */
66 * read-write lock, and we want to acquire or release the lock for reading. */
86 /* A read-write lock is one that allows multiple simultaneous readers, but
113 /** Acquire an already-allocated lock at 'lock' with mode 'mode'.
150 void (*free_condition)(void *cond);
[all …]
/freebsd/contrib/libevent/include/event2/
H A Dthread.h2 * Copyright (c) 2008-2012 Niels Provos and Nick Mathewson
31 Functions for multi-threaded applications using Libevent.
33 When using a multi-threaded application in which multiple threads
37 Like the memory-management function hooks, all of the threading functions
55 #include <event2/event-config.h>
63 * read-write lock, and we want to acquire or release the lock for writing. */
66 * read-write lock, and we want to acquire or release the lock for reading. */
86 /* A read-write lock is one that allows multiple simultaneous readers, but
113 /** Acquire an already-allocated lock at 'lock' with mode 'mode'.
150 void (*free_condition)(void *cond);
[all …]

123456