/freebsd/tools/tools/netrate/httpd/ |
H A D | httpd.c | 1 /*- 2 * Copyright (c) 2005-2006 Robert N. M. Watson 50 static int threaded; /* 1 for threaded, 0 for forked. */ variable 53 * Simple, multi-threaded/multi-process HTTP server. Very dumb. 66 #define HTTP_CONTENT "Content-Type: text/html\n\n" 69 * In order to support both multi-threaded and multi-process operation but 70 * use a single shared memory statistics model, we create a page-aligned 71 * statistics buffer. For threaded operation, it's just shared memory due to 72 * threading; for multi-process operation, we mark it as INHERIT_SHARE, so we 73 * must put it in page-aligned memory that isn't shared with other memory, or [all …]
|
/freebsd/sys/contrib/zstd/lib/ |
H A D | Makefile | 5 # This source code is licensed under both the BSD-style license (found in the 8 # You may select, at your option, one of the above-listed licenses. 54 # Note: by default, the static library is built single-threaded and dynamic library is built 55 # multi-threaded. It is possible to force multi or single threaded builds by appending 56 # -mt or -nomt to the build target (like lib-mt for multi-threaded, lib-nomt for single-threaded). 58 default: lib-release 60 CPPFLAGS_DYNLIB += -DZSTD_MULTITHREAD # dynamic library build defaults to multi-threaded 61 LDFLAGS_DYNLIB += -pthread 62 CPPFLAGS_STATLIB += # static library build defaults to single-threaded 66 decompress/zstd_decompress_block.o : CFLAGS+=-fno-tree-vectorize [all …]
|
/freebsd/contrib/ofed/opensm/include/complib/ |
H A D | cl_atomic.h | 2 * 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 61 * 32-bit signed integers in an atomic fashion. 68 * The cl_atomic_inc function atomically increments a 32-bit signed 77 * [in] Pointer to a 32-bit integer to increment. 87 * synchronization mechanisms in multi-threaded environments. 98 * The cl_atomic_dec function atomically decrements a 32-bit signed [all …]
|
/freebsd/share/man/man3/ |
H A D | pthread_multi_np.3 | 31 .Nd "switch between multi- and single-threaded scheduling modes" 43 function switches the process to a single-threaded mode, i.e., 50 function switches the process to a multi-threaded mode.
|
H A D | pthread_np.3 | 41 .Bl -bullet -offset indent -compact 54 .\" Per-Thread Context Routines 58 .Bl -tag -width indent 90 Sets the thread's scheduling mode to multi-threaded. 122 Sets the thread's scheduling mode to single-threaded. 154 .Bl -tag -width indent 183 .Bl -tag -width indent 200 .\" .Bl -tag -width indent 203 .\" .Bl -tag -width indent 205 .\" .Ss Per-Thread Context Routines [all …]
|
/freebsd/contrib/ncurses/man/ |
H A D | curs_threads.3x | 3 .\" Copyright 2021-2023,2024 Thomas E. Dickey * 4 .\" Copyright 2008-2015,2017 Free Software Foundation, Inc. * 32 .TH curs_threads 3X 2024-03-16 "ncurses @NCURSES_MAJOR@.@NCURSES_MINOR@" "Library calls" 55 \fB\%use_window\fP \- 56 \fIcurses\fR support for multi-threaded applications 73 The \fI\%ncurses\fP library can be configured to support multi-threaded 105 maintaining them as as read-only values in the \fISCREEN\fP structure. 108 thread-safe. 109 We would expect a multi-threaded application to have threads updating 124 coarse-grained mutexes for their respective \fI\%WINDOW\fP and [all …]
|
/freebsd/lib/libc/gen/ |
H A D | _once_stub.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 32 #include "un-namespace.h" 35 /* This implements pthread_once() for the single-threaded case. */ 40 if (once_control->state == PTHREAD_DONE_INIT) in _libc_once() 43 once_control->state = PTHREAD_DONE_INIT; in _libc_once() 49 * pthread_once() from the threading library in a multi-threaded 50 * process and _libc_once() for a single-threaded library. Because
|
/freebsd/lib/libsys/ |
H A D | thr_new.2 | 41 .Bf -symbolic 50 system call creates a new kernel-scheduled thread of execution in the context 53 existing kernel-scheduled threads in the process, but has private processor 67 .Bd -literal 82 .Bl -tag -width ".Va parent_tid" 99 The value of TLS base is loaded into the ABI-defined machine register 129 .Bl -tag -width ".Dv THR_SYSTEM_SCOPE" 138 Real-time scheduling priority for the new thread. 152 the process is marked by the kernel as multi-threaded. 159 output), and several operations are executed in multi-threaded mode. [all …]
|
/freebsd/tools/tools/netrate/http/ |
H A D | http.c | 1 /*- 2 * Copyright (c) 2005-2006 Robert N. M. Watson 47 static int threaded; /* 1 for threaded, 0 for forked. */ variable 52 * Simple, multi-threaded HTTP benchmark. Fetches a single URL using the 83 #define roundup(x, y) ((((x)+((y)-1))/(y))*(y)) /* to any y */ 100 return (-1); in http_fetch() 103 /* XXX: Mark non-blocking. */ in http_fetch() 109 return (-1); in http_fetch() 123 return (-1); in http_fetch() 139 return (-1); in http_fetch() [all …]
|
/freebsd/contrib/llvm-project/lldb/source/Core/ |
H A D | Communication.cpp | 1 //===-- Communication.cpp -------------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 49 return connection_sp->Connect(url, error_ptr); in Connect() 51 error_ptr->SetErrorString("Invalid connection."); in Connect() 61 ConnectionStatus status = connection_sp->Disconnect(error_ptr); in Disconnect() 62 // We currently don't protect connection_sp with any mutex for multi- in Disconnect() 63 // threaded environments. So lets not nuke our connection class without in Disconnect() 64 // putting some multi-threaded protections in. We also probably don't want in Disconnect() 79 return (connection_sp ? connection_sp->IsConnected() : false); in IsConnected() [all …]
|
/freebsd/usr.bin/sort/ |
H A D | radixsort.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 50 #define TINY_NODE(sl) ((sl)->tosort_num < 65) 51 #define SMALL_NODE(sl) ((sl)->tosort_num < 5) 56 /* sort sub-levels array size */ 103 sort_left -= n; in sort_left_dec() 134 ls->next = g_ls; in _push_ls() 147 new_ls->sl = sl; in push_ls() 161 * Pop sort level from the stack (single-threaded style) 171 sl = g_ls->sl; in pop_ls_st() [all …]
|
/freebsd/contrib/sendmail/libsm/ |
H A D | get.c | 2 * Copyright (c) 2000-2001 Proofpoint, Inc. and its suppliers. 16 SM_RCSID("@(#)$Id: get.c,v 1.19 2013-11-22 20:51:43 ca Exp $") 22 ** SM_IO_GETC -- get a character from a file 25 ** fp -- the file to get the character from 26 ** timeout -- time to complete getc 34 ** for multi-threaded programs.
|
/freebsd/usr.sbin/inetd/ |
H A D | inetd.8 | 34 .Dq super-server 70 .Bl -tag -width indent 92 a TCP-based service would need two entries, 106 May be overridden on a per-service basis with the 107 "max-connections-per-ip-per-minute" parameter. 112 May be overridden on a per-service basis with the "max-child" 128 May be overridden on a per-service basis with the "max-child-per-ip" 156 .Bd -unfilled -offset indent -compact 157 service-name 158 socket-type [all …]
|
/freebsd/lib/libopenbsd/ |
H A D | ohash_init.3 | 30 .Nd light-weight open hashing 61 Keys can either be NUL-terminated strings or fixed-size memory areas. 74 .Bd -literal -offset indent 94 .Xr free 3 Ns -like 124 are the basic look-up element functions. 142 handles string-like keys. 150 NUL-terminated keys. 193 .Bd -literal -offset indent 215 may call the user-supplied memory functions: 216 .Bd -literal -offset indent [all …]
|
/freebsd/contrib/ntp/sntp/libevent/include/event2/ |
H A D | thread.h | 2 * 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'. 153 * thread is worken. Should return 0 on success, -1 on failure. [all …]
|
/freebsd/contrib/libevent/include/event2/ |
H A D | thread.h | 2 * 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'. 153 * thread is worken. Should return 0 on success, -1 on failure. [all …]
|
/freebsd/contrib/llvm-project/lldb/include/lldb/Core/ |
H A D | ThreadedCommunication.h | 1 //===-- ThreadedCommunication.h ---------------------------------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 27 /// supports threaded reads. 30 /// for multi-threaded mode. In this mode, a read thread is spawned that 59 /// set of pre-defined event bits (see enumerations definitions that start with 244 std::recursive_mutex m_bytes_mutex; ///< A mutex to protect multi-threaded
|
/freebsd/lib/libthr/thread/ |
H A D | thr_multi_np.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 15 * 3. Neither the name of the author nor the names of any co-contributors 35 #include "un-namespace.h" 43 /* Return to multi-threaded scheduling mode: */ in _pthread_multi_np() 45 * XXX - Do we want to do this? in _pthread_multi_np()
|
/freebsd/sys/contrib/device-tree/Bindings/dma/ |
H A D | img-mdc-dma.txt | 1 * IMG Multi-threaded DMA Controller (MDC) 4 - compatible: Must be "img,pistachio-mdc-dma". 5 - reg: Must contain the base address and length of the MDC registers. 6 - interrupts: Must contain all the per-channel DMA interrupts. 7 - clocks: Must contain an entry for each entry in clock-names. 8 See ../clock/clock-bindings.txt for details. 9 - clock-names: Must include the following entries: 10 - sys: MDC system interface clock. 11 - img,cr-periph: Must contain a phandle to the peripheral control syscon 13 - img,max-burst-multiplier: Must be the maximum supported burst size multiplier. [all …]
|
/freebsd/crypto/openssl/doc/man3/ |
H A D | CRYPTO_THREAD_run_once.pod | 8 CRYPTO_atomic_add, CRYPTO_atomic_or, CRYPTO_atomic_load - OpenSSL thread support 30 OpenSSL can be safely used in multi-threaded applications provided that 31 support for the underlying OS threading API is built-in. Currently, OpenSSL 33 any multi-threading support, for example on platforms that don't provide 37 The following multi-threading function are provided: 43 CRYPTO_THREAD_run_once() can be used to perform one-time initialization. 49 In particular, this can be used to allocate locks in a thread-safe manner, 186 L<crypto(7)>, L<openssl-threads(7)>. 190 Copyright 2000-2024 The OpenSSL Project Authors. All Rights Reserved.
|
H A D | OPENSSL_init_crypto.pod | 8 OPENSSL_thread_stop_ex, OPENSSL_thread_stop - OpenSSL initialisation 35 application is multi-threaded), and these resources must be freed prior to the 120 sub-library (see L<ASYNC_start_job(3)>). This is a default option. 199 on auto-deinitialisation. This is to avoid error conditions where both an 208 readable error (see L<openssl-errstr(1)>). 241 non-null B<OPENSSL_INIT_SETTINGS> object. 270 multi-threaded and if dlclose() is subsequently called prior to the threads 293 Copyright 2016-2024 The OpenSSL Project Authors. All Rights Reserved.
|
H A D | OPENSSL_init_ssl.pod | 5 OPENSSL_init_ssl - OpenSSL (libssl and libcrypto) initialisation 18 application is multi-threaded), and these resources must be freed prior to the 77 Copyright 2016-2020 The OpenSSL Project Authors. All Rights Reserved.
|
/freebsd/crypto/openssl/apps/include/ |
H A D | http_server.h | 2 * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved. 48 /*- 49 * Log a message to syslog if multi-threaded HTTP_DAEMON, else to bio_err 58 /*- 66 /*- 67 * Accept an ASN.1-formatted HTTP request 79 * returns -1 on fatal error; also then holds *preq == *ppath == *pcbio == NULL 84 * The caller must free any non-NULL *preq, *ppath, and *pcbio pointers. 92 /*- 93 * Send an ASN.1-formatted HTTP response [all …]
|
/freebsd/lib/libc/include/ |
H A D | libc_private.h | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 15 * 3. Neither the name of the author nor the names of any co-contributors 46 * to allow to run a newer world on a pre-1400079 kernel. 51 * This global flag is non-zero when a process has created one 93 * process is threaded to avoid locking when not required. 282 * Provides pthread_once()-like functionality for both single-threaded 283 * and multi-threaded applications. 288 * This is a pointer in the C run-time startup code. It is used 301 * thread is exiting, so its thread-local dtors should be called.
|
/freebsd/sys/contrib/device-tree/Bindings/mailbox/ |
H A D | mediatek,gce-props.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/mailbox/mediatek,gce-props.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Houlong Wei <houlong.wei@mediatek.com> 13 The Global Command Engine (GCE) is an instruction based, multi-threaded, 14 single-core command dispatcher for MediaTek hardware. The Command Queue 18 We use mediatek,gce-mailbox.yaml to define the properties for CMDQ mailbox 28 mediatek,gce-events: 32 The property mediatek,gce-events is used to obtain the event IDs. [all …]
|