Searched refs:factory (Results 1 - 23 of 23) sorted by relevance

/freebsd-12-stable/sys/contrib/zstd/contrib/pzstd/utils/
H A DResourcePool.h21 * A `ResourcePool<T>` requires a factory function that takes allocates `T*` and
49 * @param factory The function to use to create new resources.
50 * @param free The function to use to free resources created by `factory`.
52 ResourcePool(Factory factory, Free free) argument
53 : factory_(std::move(factory)), free_(std::move(free)), inUse_(0) {}
57 * there are no avaiable resources and `factory()` returns null.
/freebsd-12-stable/contrib/gperf/src/
H A Dmain.cc34 /* This Keyword factory produces KeywordExt instances. */
69 KeywordExt_Factory factory; local
70 Input inputter (stdin, &factory);
/freebsd-12-stable/contrib/ntp/sntp/libevent/
H A Devent_rpcgen.py11 # to allow the instantiated factory (for the specific output language)
1311 def ProcessOneEntry(factory, newstruct, entry):
1373 newentry = factory.EntryBytes(entry_type, name, tag, fixed_length)
1375 newentry = factory.EntryVarBytes(entry_type, name, tag)
1377 newentry = factory.EntryInt(entry_type, name, tag)
1379 newentry = factory.EntryInt(entry_type, name, tag, bits=64)
1381 newentry = factory.EntryString(entry_type, name, tag)
1386 newentry = factory.EntryStruct(entry_type, name, tag, res.group(1))
1406 newentry = factory.EntryArray(newentry)
1415 def ProcessStruct(factory, dat
[all...]
/freebsd-12-stable/contrib/libevent/
H A Devent_rpcgen.py11 # to allow the instantiated factory (for the specific output language)
1311 def ProcessOneEntry(factory, newstruct, entry):
1373 newentry = factory.EntryBytes(entry_type, name, tag, fixed_length)
1375 newentry = factory.EntryVarBytes(entry_type, name, tag)
1377 newentry = factory.EntryInt(entry_type, name, tag)
1379 newentry = factory.EntryInt(entry_type, name, tag, bits=64)
1381 newentry = factory.EntryString(entry_type, name, tag)
1386 newentry = factory.EntryStruct(entry_type, name, tag, res.group(1))
1406 newentry = factory.EntryArray(newentry)
1415 def ProcessStruct(factory, dat
[all...]
/freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_thread_registry.h91 ThreadRegistry(ThreadContextFactory factory, u32 max_threads,
H A Dsanitizer_thread_registry.cpp104 ThreadRegistry::ThreadRegistry(ThreadContextFactory factory, u32 max_threads, argument
106 : context_factory_(factory),
/freebsd-12-stable/lib/libdevdctl/
H A Devent.h97 /** Generic Event object factory. */
100 static Event *CreateEvent(const EventFactory &factory,
319 /** Specialized Event object factory for Devfs events. */
357 /** Specialized Event object factory for GEOM events. */
380 /** Specialized Event object factory for ZFS events. */
H A Devent.cc102 Event::CreateEvent(const EventFactory &factory, const string &eventString) argument
123 return (factory.Build(type, nvpairs, eventString));
/freebsd-12-stable/share/zoneinfo/
H A DMakefile50 factory northamerica southamerica
/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/ADT/
H A DImmutableSet.h221 Factory *factory; member in class:llvm::ImutAVLTree
245 : factory(f), left(l), right(r), height(height), IsMutable(true),
267 // methods of a factory object (see below). When a tree
350 factory->Cache[factory->maskCacheIndex(computeDigest())] = next;
356 factory->freeNodes.push_back(this);
1017 /// factory object that created the set is destroyed.
1029 /// factory object that created the set is destroyed.
/freebsd-12-stable/contrib/llvm-project/lldb/tools/lldb-server/
H A Dlldb-gdbserver.cpp502 NativeProcessFactory factory; local
503 GDBRemoteCommunicationServerLLGS gdb_server(mainloop, factory);
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/Sema/
H A DParsedAttr.h541 /// A factory, from which one makes pools, from which one creates
624 /// Create a new pool for a factory.
625 AttributePool(AttributeFactory &factory) : Factory(factory) {}
826 ParsedAttributes(AttributeFactory &factory) : pool(factory) {}
/freebsd-12-stable/contrib/googletest/googlemock/include/gmock/
H A Dgmock-actions.h59 // 2. a factory function that creates an Action object from a
211 // Provides a factory function to be called to generate the default value.
215 static void SetFactory(FactoryFunction factory) { argument
217 producer_ = new FactoryValueProducer(factory);
262 explicit FactoryValueProducer(FactoryFunction factory) argument
263 : factory_(factory) {}
/freebsd-12-stable/sys/contrib/zstd/lib/compress/
H A Dzstdmt_compress.c740 POOL_ctx* factory; member in struct:ZSTDMT_CCtx_s
830 mtctx->factory = POOL_create_advanced(nbWorkers, 0, cMem);
839 if (!mtctx->factory | !mtctx->jobs | !mtctx->bufPool | !mtctx->cctxPool | !mtctx->seqPool | initError) {
889 POOL_free(mtctx->factory); /* stop and free worker threads */
907 + POOL_sizeof(mtctx->factory)
1132 POOL_add(mtctx->factory, ZSTDMT_compressionJob, &mtctx->jobs[u]);
1459 if (POOL_tryAdd(mtctx->factory, ZSTDMT_compressionJob, &mtctx->jobs[jobID])) {
/freebsd-12-stable/contrib/tzdata/
H A DMakefile509 NDATA= factory
541 etcetera europe factory iso3166.tab \
/freebsd-12-stable/cddl/usr.sbin/zfsd/
H A Dcase_file.cc890 const EventFactory &factory(ZfsDaemon::Get().GetFactory());
916 Event *event(Event::CreateEvent(factory, line));
/freebsd-12-stable/contrib/googletest/googletest/include/gtest/
H A Dgtest.h206 // To create an instance of this class, use one of the factory functions
770 internal::TestFactoryBase* factory);
773 // ownership of the factory object.
780 internal::TestFactoryBase* factory);
812 internal::TestFactoryBase* const factory_; // The factory that creates
/freebsd-12-stable/contrib/libxo/xohtml/external/
H A Djquery.qtip.js19 (function( factory ) {
22 define(['jquery', 'imagesloaded'], factory);
25 factory(jQuery);
/freebsd-12-stable/contrib/googletest/googletest/include/gtest/internal/
H A Dgtest-internal.h450 // Defines the abstract factory interface that creates instances
515 // factory: pointer to the factory that creates a test object.
517 // ownership of the factory object.
527 TestFactoryBase* factory);
/freebsd-12-stable/contrib/googletest/googletest/src/
H A Dgtest.cc2563 // Constructs a TestInfo object. It assumes ownership of the test factory
2571 internal::TestFactoryBase* factory)
2581 factory_(factory),
2604 // factory: pointer to the factory that creates a test object.
2606 // ownership of the factory object.
2616 TestFactoryBase* factory) {
2619 code_location, fixture_class_id, factory);
2565 TestInfo(const std::string& a_test_case_name, const std::string& a_name, const char* a_type_param, const char* a_value_param, internal::CodeLocation a_code_location, internal::TypeId fixture_class_id, internal::TestFactoryBase* factory) argument
2607 MakeAndRegisterTestInfo( const char* test_case_name, const char* name, const char* type_param, const char* value_param, CodeLocation code_location, TypeId fixture_class_id, SetUpTestCaseFunc set_up_tc, TearDownTestCaseFunc tear_down_tc, TestFactoryBase* factory) argument
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/Parse/
H A DParser.h1508 ParsedAttributesWithRange(AttributeFactory &factory) argument
1509 : ParsedAttributes(factory) {}
/freebsd-12-stable/contrib/llvm-project/lldb/include/lldb/Target/
H A DProcess.h637 /// \param[in] factory
647 llvm::function_ref<std::unique_ptr<UtilityFunction>()> factory);
/freebsd-12-stable/contrib/llvm-project/lldb/source/Target/
H A DProcess.cpp5964 llvm::function_ref<std::unique_ptr<UtilityFunction>()> factory) {
5968 [&] { m_dlopen_utility_func_up = factory(); });

Completed in 438 milliseconds