Searched refs:allocator (Results 1 - 25 of 34) sorted by path

12

/haiku/headers/cpp/
H A Dalloc.h37 using __STD::allocator;
H A Ddefalloc.h17 // default allocator. It is provided only for backward compatibility.
21 // that requires an allocator with the HP-style interface.
24 // standard default allocator is declared in the header <memory>.
63 class allocator { class
88 class allocator<void> { class
H A Dstl_alloc.h93 // The lock needs to be initialized by constructing an allocator
134 // Malloc-based allocator. Typically slower than default alloc below.
243 // NDEBUG, but it's far better to just use the underlying allocator
292 // Default node allocator.
308 // may use this allocator. It is safe to allocate an object from
314 // Node that containers built on different allocator instances have
733 class allocator { class
734 typedef alloc _Alloc; // The underlying allocator.
745 typedef allocator<_Tp1> other;
748 allocator() __STL_NOTHRO
775 class allocator<void> { class
789 operator ==(const allocator<_T1>&, const allocator<_T2>&) argument
795 operator !=(const allocator<_T1>&, const allocator<_T2>&) argument
[all...]
H A Dstl_config.h91 // BeOS used to trick the STL allocator (in stl_alloc.h) into falling back
93 // By requesting to use those directly, we should get the same allocator,
97 // allocator with posix threads enabled (however, this would have to be
100 // still using the old allocator).
313 # define __STL_DEFAULT_ALLOCATOR(T) allocator<T>
/haiku/headers/private/userlandfs/private/
H A DRequestAllocator.h78 AllocateRequest(RequestAllocator& allocator, SpecificRequest** request) argument
82 status_t error = allocator.AllocateRequest(sizeof(SpecificRequest));
84 *request = new(allocator.GetRequest()) SpecificRequest;
H A DRequestPort.h27 status_t SendRequest(RequestAllocator* allocator);
28 status_t SendRequest(RequestAllocator* allocator,
/haiku/src/add-ons/kernel/file_systems/ext2/
H A DBlockAllocator.h42 static status_t _Initialize(BlockAllocator* allocator);
/haiku/src/add-ons/kernel/file_systems/userlandfs/kernel_add_on/
H A DKernelRequestHandler.cpp236 RequestAllocator allocator(fPort->GetPort());
238 status_t error = AllocateRequest(allocator, &reply);
245 return fPort->SendRequest(&allocator);
270 RequestAllocator allocator(fPort->GetPort());
272 status_t error = AllocateRequest(allocator, &reply);
279 return fPort->SendRequest(&allocator);
333 RequestAllocator allocator(fPort->GetPort());
335 status_t error = AllocateRequest(allocator, &reply);
342 return fPort->SendRequest(&allocator);
360 RequestAllocator allocator(fPor
[all...]
H A DVolume.h268 RequestAllocator* allocator,
/haiku/src/add-ons/kernel/file_systems/userlandfs/private/
H A DRequestPort.cpp17 AllocatorNode(Port* port) : allocator(port), previous(NULL) {}
19 RequestAllocator allocator; member in struct:RequestPort::AllocatorNode
75 RequestPort::SendRequest(RequestAllocator* allocator) argument
80 if (!allocator || allocator->GetRequest() == NULL
81 || allocator->GetRequestSize() < (int32)sizeof(Request)) {
84 allocator->FinishDeferredInit();
85 //PRINT(("RequestPort::SendRequest(%lu)\n", allocator->GetRequest()->GetType()));
87 if (!is_userland_request(allocator->GetRequest()->GetType())) {
89 "userland request\n", allocator
105 SendRequest(RequestAllocator* allocator, RequestHandler* handler, Request** reply, bigtime_t timeout) argument
[all...]
/haiku/src/add-ons/kernel/file_systems/userlandfs/server/
H A DUserlandRequestHandler.h209 status_t _SendReply(RequestAllocator& allocator,
H A Dkernel_emu.cpp142 RequestAllocator allocator(port->GetPort());
144 error = AllocateRequest(allocator, &request);
154 error = allocator.AllocateString(request->oldName, oldName);
157 error = allocator.AllocateString(request->name, name);
164 error = port->SendRequest(&allocator, &handler, (Request**)&reply);
188 RequestAllocator allocator(port->GetPort());
190 error = AllocateRequest(allocator, &request);
201 error = port->SendRequest(&allocator, &handler, (Request**)&reply);
226 RequestAllocator allocator(port->GetPort());
228 error = AllocateRequest(allocator,
[all...]
/haiku/src/apps/resedit/
H A DResourceRoster.cpp34 create_editor *allocator);
48 create_editor *allocator)
51 fAllocator(allocator)
47 EditorInfo(const image_id &id, const char *name, create_editor *allocator) argument
/haiku/src/apps/serialconnect/libvterm/src/
H A Dvterm.c37 /* Need to bootstrap using the allocator function directly */
40 vt->allocator = funcs;
75 return (*vt->allocator->malloc)(size, vt->allocdata);
80 (*vt->allocator->free)(ptr, vt->allocdata);
H A Dvterm_internal.h128 VTermAllocatorFunctions *allocator; member in struct:VTerm
/haiku/src/servers/app/
H A DBitmapManager.h29 ServerBitmap* CreateBitmap(ClientMemoryAllocator* allocator,
/haiku/src/tests/add-ons/kernel/file_systems/bfs/bufferPool/
H A Dmain.cpp16 allocator(void *_pool) function
48 thread[i] = spawn_thread(allocator, "", B_NORMAL_PRIORITY, (void *)&pool);
/haiku/src/tests/system/kernel/file_corruption/fs/
H A DBlockAllocator.h77 AllocatedBlock(BlockAllocator* allocator, Transaction& transaction) argument
79 fAllocator(allocator),
/haiku/src/tools/cppunit/cppunit/
H A DTestFactoryRegistry.cpp80 const basic_string< char, char_traits< char>, allocator<char> >,
/haiku/src/tools/fs_shell/
H A DOpenHashTable.h78 * called byt he memory allocator).
116 BOpenHashTable(const Definition& definition, const Allocator& allocator) argument
119 fAllocator(allocator),
/haiku/headers/private/kernel/util/
H A DOpenHashTable.h78 * called by the memory allocator).
116 BOpenHashTable(const Definition& definition, const Allocator& allocator) argument
119 fAllocator(allocator),
/haiku/src/add-ons/kernel/file_systems/bfs/
H A DBlockAllocator.cpp511 recursive_lock_init(&fLock, "bfs allocator");
542 "bfs block allocator", B_LOW_PRIORITY, this);
619 BlockAllocator::_Initialize(BlockAllocator* allocator)
622 RecursiveLocker locker(allocator->fLock, true);
624 Volume* volume = allocator->fVolume;
625 uint32 blocks = allocator->fBlocksPerGroup;
633 AllocationGroup* groups = allocator->fGroups;
636 int32 numGroups = allocator->fNumGroups;
685 if (allocator->CheckBlocks(0, reservedBlocks) != B_OK) {
1474 BlockAllocator& allocator
[all...]
H A DCheckVisitor.cpp52 // Lock the volume's journal and block allocator
608 BlockAllocator& allocator = GetVolume()->Allocator(); local
611 if (!allocator.IsValidBlockRun(run, type)) {
626 status = allocator.CheckBlocks(block, end - block, true, &firstMissing);
633 status = allocator.CheckBlocks(firstMissing, end - firstMissing, false,
H A DInode.cpp1764 // from the block allocator
2716 InodeAllocator allocator(transaction);
2719 status = allocator.New(&parentRun, mode, publishFlags, run, vnodeOps,
2757 status = allocator.CreateTree();
2825 allocator.Keep(vnodeOps, publishFlags);
H A Dkernel_interface.cpp793 BlockAllocator& allocator = volume->Allocator(); local
794 allocator.Fragment();
804 BlockAllocator& allocator = volume->Allocator(); local
808 while (allocator.AllocateBlocks(transaction, 8, 0, 64, 1, run)

Completed in 150 milliseconds

12