Unnamed: 0
int64
0
0
repo_id
stringlengths
5
186
file_path
stringlengths
15
223
content
stringlengths
1
32.8M
0
repos/zig_learn_opengl/src/getting_started
repos/zig_learn_opengl/src/getting_started/hello_triangle/main.zig
const std = @import("std"); const glfw = @import("glfw"); const gl = @import("gl"); const vertexShaderSource = \\ #version 410 core \\ layout (location = 0) in vec3 aPos; \\ void main() \\ { \\ gl_Position = vec4(aPos.x, aPos.y, aPos.z, 1.0); \\ } ; const fragmentShaderSource = \\ #versi...
0
repos/zig_learn_opengl/src/getting_started
repos/zig_learn_opengl/src/getting_started/hello_triangle/README.md
# [Hello Triangle](https://learnopengl.com/Getting-started/Hello-Triangle) book chapter. <br /> <img src="image.png" alt="excercise 1" height="200"> Exercise 1: Try to draw 2 triangles next to each other using glDrawArrays by adding more vertices to your data <br /> <img src="excercise_1.png" alt="excercise 1" height=...
0
repos/zig_learn_opengl/src/getting_started
repos/zig_learn_opengl/src/getting_started/hello_triangle/build.zig
const std = @import("std"); const Options = @import("../../../build.zig").Options; inline fn thisDir() []const u8 { return comptime std.fs.path.dirname(@src().file) orelse "."; } pub fn build(b: *std.Build, options: Options) *std.build.CompileStep { const exe = b.addExecutable(.{ .name = "hello_trang...
0
repos/zig_learn_opengl
repos/zig_learn_opengl/libs/Shader.zig
const std = @import("std"); const gl = @import("gl"); const Shader = @This(); // The program ID ID: c_uint, pub fn create(arena: std.mem.Allocator, vs_path:[]const u8, fs_path:[]const u8) Shader { // Create vertex shader var vertexShader: c_uint = undefined; vertexShader = gl.createShader(gl.VERTEX_SHADE...
0
repos/zig_learn_opengl
repos/zig_learn_opengl/libs/Camera.zig
const std = @import("std"); const gl = @import("gl"); const zm = @import("zmath"); const common = @import("common"); const Camera = @This(); pub const CameraMovement = enum { FORWARD, BACKWARD, LEFT, RIGHT, }; const WORLD_UP = zm.loadArr3(.{0.0, 1.0, 0.0}); const MOVEMENT_SPEED: f32 = 2.5; const MOUSE...
0
repos/zig_learn_opengl
repos/zig_learn_opengl/libs/gl.zig
// // This code file is licenced under any of Public Domain, WTFPL or CC0. // There are no restrictions in the use of this file. // // // Generation parameters: // API: GL_VERSION_4_1 // Profile: core // Extensions: // // // This file was generated with the following command line: // generator /Users/slims...
0
repos/zig_learn_opengl
repos/zig_learn_opengl/libs/common.zig
const std = @import("std"); const math = std.math; pub fn pathToContent(arena: std.mem.Allocator, resource_relative_path: [:0]const u8) ![4096:0] u8 { const exe_path = std.fs.selfExeDirPathAlloc(arena) catch unreachable; const content_path = std.fs.path.join(arena, &.{exe_path, resource_relative_path}) catch u...
0
repos/zig_learn_opengl/libs
repos/zig_learn_opengl/libs/zmath/README.md
# zmath v0.9.5 - SIMD math library for game developers Tested on x86_64 and AArch64. Provides ~140 optimized routines and ~70 extensive tests. Can be used with any graphics API. Documentation can be found [here](https://github.com/michal-z/zig-gamedev/blob/main/libs/zmath/src/zmath.zig). Benchamrks can be found [h...
0
repos/zig_learn_opengl/libs
repos/zig_learn_opengl/libs/zmath/build.zig
const std = @import("std"); pub const Options = struct { prefer_determinism: bool = false, }; pub const Package = struct { module: *std.Build.Module, options: Options, options_module: *std.Build.Module, }; pub fn package( b: *std.Build, args: struct { options: Options = .{}, }, ) ...
0
repos/zig_learn_opengl/libs/zmath
repos/zig_learn_opengl/libs/zmath/src/zmath.zig
// ============================================================================== // // SIMD math library for game developers // https://github.com/michal-z/zig-gamedev/tree/main/libs/zmath // // Should work on all OSes supported by Zig. Works on x86_64 and ARM. // Provides ~140 optimized routines and ~70 extensive tes...
0
repos/zig_learn_opengl/libs/zmath
repos/zig_learn_opengl/libs/zmath/src/benchmark.zig
// ------------------------------------------------------------------------------------------------- // zmath - benchmarks // ------------------------------------------------------------------------------------------------- // 'zig build benchmark' in the root project directory will build and run 'ReleaseFast' configur...
0
repos/zig_learn_opengl/libs/zmath
repos/zig_learn_opengl/libs/zmath/src/main.zig
//-------------------------------------------------------------------------------------------------- // // SIMD math library for game developers // https://github.com/michal-z/zig-gamedev/tree/main/libs/zmath // // See zmath.zig for more details. // See util.zig for additional functionality. // //----------------------...
0
repos/zig_learn_opengl/libs/zmath
repos/zig_learn_opengl/libs/zmath/src/util.zig
// ============================================================================== // // Collection of useful functions building on top of, and extending, core zmath. // https://github.com/michal-z/zig-gamedev/tree/main/libs/zmath // // ------------------------------------------------------------------------------ // 1....
0
repos/zig_learn_opengl/libs
repos/zig_learn_opengl/libs/zstbi/README.md
# zstbi v0.9.2 - stb image bindings ## Features * Supports Zig memory allocators * Supports decoding most popular formats * Supports HDR images * Supports 8-bits and 16-bits per channel * Supports image resizing * Supports image writing (.png, .jpg) ## Getting started Copy `zstbi` folder to a `libs` subdirectory of...
0
repos/zig_learn_opengl/libs
repos/zig_learn_opengl/libs/zstbi/build.zig
const std = @import("std"); pub const Package = struct { module: *std.Build.Module, }; pub fn package(b: *std.Build, _: struct {}) Package { const module = b.createModule(.{ .source_file = .{ .path = thisDir() ++ "/src/zstbi.zig" }, }); return .{ .module = module }; } pub fn build(_: *std.Bui...
0
repos/zig_learn_opengl/libs/zstbi
repos/zig_learn_opengl/libs/zstbi/src/zstbi.zig
pub const version = @import("std").SemanticVersion{ .major = 0, .minor = 9, .patch = 2 }; const std = @import("std"); const assert = std.debug.assert; pub fn init(allocator: std.mem.Allocator) void { assert(mem_allocator == null); mem_allocator = allocator; mem_allocations = std.AutoHashMap(usize, usize).i...
0
repos/zig_learn_opengl/libs/zstbi/libs
repos/zig_learn_opengl/libs/zstbi/libs/stbi/stb_image_resize.h
/* stb_image_resize - v0.97 - public domain image resizing by Jorge L Rodriguez (@VinoBS) - 2014 http://github.com/nothings/stb Written with emphasis on usability, portability, and efficiency. (No SIMD or threads, so it be easily outperformed by libs that use those.) Only scaling and translation is supp...
0
repos/zig_learn_opengl/libs/zstbi/libs
repos/zig_learn_opengl/libs/zstbi/libs/stbi/stb_image.h
/* stb_image - v2.27 - public domain image loader - http://nothings.org/stb no warranty implied; use at your own risk Do this: #define STB_IMAGE_IMPLEMENTATION before you include this file in *one* C or C++ file to create the implementation. // i.e. it should look like...
0
repos/zig_learn_opengl/libs/zstbi/libs
repos/zig_learn_opengl/libs/zstbi/libs/stbi/stb_image_write.h
/* stb_image_write - v1.16 - public domain - http://nothings.org/stb writes out PNG/BMP/TGA/JPEG/HDR images to C stdio - Sean Barrett 2010-2015 no warranty implied; use at your own risk Before #including, #define STB_IMAGE_WRITE_IMPLEMENTATION in the file that you...
0
repos/zig_learn_opengl/libs/zstbi/libs
repos/zig_learn_opengl/libs/zstbi/libs/stbi/stb_image.c
#include <stdlib.h> void* (*zstbiMallocPtr)(size_t size) = NULL; void* (*zstbiReallocPtr)(void* ptr, size_t size) = NULL; void (*zstbiFreePtr)(void* ptr) = NULL; #define STBI_MALLOC(size) zstbiMallocPtr(size) #define STBI_REALLOC(ptr, size) zstbiReallocPtr(ptr, size) #define STBI_FREE(ptr) zstbiFreePtr(ptr) #define ...
0
repos
repos/codecrafters_bittorrent/README.md
[![progress-banner](https://backend.codecrafters.io/progress/bittorrent/63a4d6ec-5514-4322-9f54-dca9c23c3aae)](https://app.codecrafters.io/users/codecrafters-bot?r=2qF) This is a starting point for Zig solutions to the ["Build Your Own BitTorrent" Challenge](https://app.codecrafters.io/courses/bittorrent/overview). I...
0
repos
repos/codecrafters_bittorrent/your_bittorrent.sh
#!/bin/sh # # DON'T EDIT THIS! # # CodeCrafters uses this file to test your code. Don't make any changes here! # # DON'T EDIT THIS! set -e zig build-exe ./app/main.zig ./main "$@"
0
repos
repos/codecrafters_bittorrent/codecrafters.yml
# Set this to true if you want debug logs. # # These can be VERY verbose, so we suggest turning them off # unless you really need them. debug: false # Use this to change the Zig version used to run your code # on Codecrafters. # # Available versions: zig-0.12 language_pack: zig-0.12
0
repos/codecrafters_bittorrent
repos/codecrafters_bittorrent/app/main.zig
const std = @import("std"); const fs = std.fs; const hash = std.crypto.hash; const stdout = std.io.getStdOut().writer(); const stderr = std.io.getStdErr().writer(); const page_allocator = std.heap.page_allocator; const test_allocator = std.testing.allocator; const assert = std.debug.assert; const ArrayList = std.ArrayL...
0
repos
repos/zig-ksuid/README.md
# zig-ksuid Zig implementation of [segmentio/ksuid](https://github.com/segmentio/ksuid).
0
repos
repos/zig-ksuid/build.zig.zon
.{ .name = "ksuid", .version = "0.1.0", .dependencies = .{ .clap = .{ .url = "https://github.com/Hejsil/zig-clap/archive/34e068756e69e7ee51ba6f27eb9036e19984a128.tar.gz", .hash = "12206795542ab1c19251aac74db20dda4c2abf3289597dd02d52b1d70175064fb298", }, }, }
0
repos
repos/zig-ksuid/build.zig
const std = @import("std"); pub fn build(b: *std.Build) void { const target = b.standardTargetOptions(.{}); const optimize = b.standardOptimizeOption(.{}); const strip = b.option(bool, "strip", "Omit debug symbols"); _ = b.addModule("KSUID", .{ .source_file = .{ .path = "src/KSUID.zig" }, ...
0
repos/zig-ksuid
repos/zig-ksuid/src/main.zig
const std = @import("std"); const io = std.io; const clap = @import("clap"); const KSUID = @import("./KSUID.zig"); pub fn main() void { const params = comptime clap.parseParamsComptime( \\-h, --help Print help \\-n, --number <usize> Number of KSUIDs to generate (default 1) \\ ...
0
repos/zig-ksuid
repos/zig-ksuid/src/base62.zig
const std = @import("std"); const testing = std.testing; /// lexographic ordering (based on Unicode table) is 0-9A-Za-z const base62_characters = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; const zero_string = "000000000000000000000000000"; const offset_uppercase = 10; const offset_lowercase = 36...
0
repos/zig-ksuid
repos/zig-ksuid/src/KSUID.zig
//! KSUIDs are 20 bytes: //! //! - 00-03 byte: uint32 BE UTC timestamp with custom epoch //! - 04-19 byte: random "payload" const std = @import("std"); const time = std.time; const mem = std.mem; const crypto = std.crypto; const base62 = @import("./base62.zig"); const testing = std.testing; const KSUID = @This(); byt...
0
repos
repos/fiber/CMakeLists.txt
# Copyright 2020, 2021 Peter Dimov # Distributed under the Boost Software License, Version 1.0. # https://www.boost.org/LICENSE_1_0.txt cmake_minimum_required(VERSION 3.8...3.20) project(boost_fiber VERSION "${BOOST_SUPERPROJECT_VERSION}" LANGUAGES CXX) if(WIN32 AND NOT CMAKE_CXX_PLATFORM_ID MATCHES "Cygwin") set(...
0
repos
repos/fiber/README.md
Boost.fiber =========== Boost.fiber provides a framework for micro-/userland-threads (fibers) scheduled cooperatively. The API contains classes and functions to manage and synchronize fibers similar to boost.thread. A fiber is able to store the current execution state, including all registers and CPU flags, the inst...
0
repos
repos/fiber/build.zig.zon
.{ .name = "fiber", .version = "1.86.0", .license = "BSL-1.0", .dependencies = .{ .boost = .{ .url = "git+https://github.com/allyourcodebase/boost-libraries-zig#88476265cab52ca4c2ea35b93ed27d5df07c37e5", .hash = "122033ce4287bc96cec01bd8573cfda28d3ef3da9136b77dc85e67828f2...
0
repos
repos/fiber/build.zig
const std = @import("std"); pub fn build(b: *std.Build) void { const target = b.standardTargetOptions(.{}); const optimize = b.standardOptimizeOption(.{}); const tests = b.option(bool, "Tests", "Build tests [default: false]") orelse false; const lib = boostLibraries(b, .{ .target = target, ...
0
repos
repos/fiber/index.html
<html> <head> <meta http-equiv="refresh" content="0; URL=doc/html/index.html"> </head> <body> Automatic redirection failed, please go to <a href="doc/html/index.html">doc/html/index.html</a> <hr> <p>&copy; Copyright Beman Dawes, 2001</p> <p> Distributed under the Boost Software License, Version 1.0. (See accompanying ...
0
repos
repos/fiber/.travis.yml
# Copyright 2016, 2017 Peter Dimov # Distributed under the Boost Software License, Version 1.0. # (See accompanying file LICENSE_1_0.txt or copy at http://boost.org/LICENSE_1_0.txt) language: cpp sudo: false python: "2.7" branches: only: - master - develop - /feature\/.*/ env: matrix: - BOGUS_J...
0
repos/fiber/include/boost
repos/fiber/include/boost/fiber/fixedsize_stack.hpp
// Copyright Oliver Kowalke 2014. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_FIBERS_FIXEDSIZE_STACK_H #define BOOST_FIBERS_FIXEDSIZE_STACK_H #include <boost/config.hpp> ...
0
repos/fiber/include/boost
repos/fiber/include/boost/fiber/exceptions.hpp
// // Copyright Oliver Kowalke 2013. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // based on boost.thread #ifndef BOOST_fiber_errorS_H #define BOOST_fiber_errorS_H #include <future> #i...
0
repos/fiber/include/boost
repos/fiber/include/boost/fiber/barrier.hpp
// Copyright Oliver Kowalke 2013. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_FIBERS_BARRIER_H #define BOOST_FIBERS_BARRIER_H #include <cstddef> #include <boost/config.h...
0
repos/fiber/include/boost
repos/fiber/include/boost/fiber/timed_mutex.hpp
// Copyright Oliver Kowalke 2013. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_FIBERS_TIMED_MUTEX_H #define BOOST_FIBERS_TIMED_MUTEX_H #include <chrono> #include <boost/a...
0
repos/fiber/include/boost
repos/fiber/include/boost/fiber/protected_fixedsize_stack.hpp
// Copyright Oliver Kowalke 2014. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_FIBERS_PROTECTED_FIXEDSIZE_STACK_H #define BOOST_FIBERS_PROTECTED_FIXEDSIZE_STACK_H #include...
0
repos/fiber/include/boost
repos/fiber/include/boost/fiber/stack_allocator_wrapper.hpp
#ifndef BOOST_FIBERS_STACK_ALLOCATOR_WRAPPER_H #define BOOST_FIBERS_STACK_ALLOCATOR_WRAPPER_H #include <memory> #include <boost/fiber/detail/config.hpp> #include <boost/context/stack_context.hpp> #include <boost/fiber/fixedsize_stack.hpp> #include <boost/fiber/segmented_stack.hpp> namespace boost { namespace fibers ...
0
repos/fiber/include/boost
repos/fiber/include/boost/fiber/waker.hpp
#ifndef BOOST_FIBERS_WAKER_H #define BOOST_FIBERS_WAKER_H #include <cstddef> #include <boost/config.hpp> #include <boost/fiber/detail/config.hpp> #include <boost/fiber/detail/spinlock.hpp> #include <boost/intrusive/slist.hpp> namespace boost { namespace fibers { class context; namespace detail { typedef intrusive...
0
repos/fiber/include/boost
repos/fiber/include/boost/fiber/type.hpp
// Copyright Oliver Kowalke 2013. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_FIBERS_TYPE_H #define BOOST_FIBERS_TYPE_H #include <atomic> #include <chrono> #include <exce...
0
repos/fiber/include/boost
repos/fiber/include/boost/fiber/buffered_channel.hpp
// Copyright Oliver Kowalke 2016. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // #ifndef BOOST_FIBERS_BUFFERED_CHANNEL_H #define BOOST_FIBERS_BUFFERED_CHANNEL_H #include <atomic> #incl...
0
repos/fiber/include/boost
repos/fiber/include/boost/fiber/mutex.hpp
// Copyright Oliver Kowalke 2013. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_FIBERS_MUTEX_H #define BOOST_FIBERS_MUTEX_H #include <boost/config.hpp> #include <boost/ass...
0
repos/fiber/include/boost
repos/fiber/include/boost/fiber/channel_op_status.hpp
// Copyright Oliver Kowalke 2013. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_FIBERS_CHANNEL_OP_STATUS_H #define BOOST_FIBERS_CHANNEL_OP_STATUS_H #include <boost/config.hp...
0
repos/fiber/include/boost
repos/fiber/include/boost/fiber/unbuffered_channel.hpp
// Copyright Oliver Kowalke 2016. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_FIBERS_UNBUFFERED_CHANNEL_H #define BOOST_FIBERS_UNBUFFERED_CHANNEL_H #include <atomic> #inc...
0
repos/fiber/include/boost
repos/fiber/include/boost/fiber/all.hpp
// Copyright Oliver Kowalke 2013. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_FIBERS_H #define BOOST_FIBERS_H #include <boost/fiber/algo/algorithm.hpp> #include <boost/fi...
0
repos/fiber/include/boost
repos/fiber/include/boost/fiber/fss.hpp
// Copyright Oliver Kowalke 2013. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // // based on tss.hpp from boost.thread #ifndef BOOST_FIBERS_FSS_H #define BOOST_FIBERS_FSS_H #i...
0
repos/fiber/include/boost
repos/fiber/include/boost/fiber/policy.hpp
// Copyright Oliver Kowalke 2013. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_FIBERS_POLICY_H #define BOOST_FIBERS_POLICY_H #include <type_traits> #include <boost/config...
0
repos/fiber/include/boost
repos/fiber/include/boost/fiber/segmented_stack.hpp
// Copyright Oliver Kowalke 2014. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_FIBERS_SEGMENTED_STACK_H #define BOOST_FIBERS_SEGMENTED_STACK_H #include <boost/config.hpp> ...
0
repos/fiber/include/boost
repos/fiber/include/boost/fiber/recursive_timed_mutex.hpp
// Copyright Oliver Kowalke 2013. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // // based on boost::interprocess::sync::interprocess_spinlock #ifndef BOOST_FIBERS_RECURSIVE_TIMED_MUTEX...
0
repos/fiber/include/boost
repos/fiber/include/boost/fiber/condition_variable.hpp
// Copyright Oliver Kowalke 2013. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_FIBERS_CONDITION_VARIABLE_H #define BOOST_FIBERS_CONDITION_VARIABLE_H #include <algorithm> #...
0
repos/fiber/include/boost
repos/fiber/include/boost/fiber/fiber.hpp
// Copyright Oliver Kowalke 2013. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_FIBERS_FIBER_H #define BOOST_FIBERS_FIBER_H #include <algorithm> #include <exception> #inclu...
0
repos/fiber/include/boost
repos/fiber/include/boost/fiber/operations.hpp
// Copyright Oliver Kowalke 2013. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_THIS_FIBER_OPERATIONS_H #define BOOST_THIS_FIBER_OPERATIONS_H #include <chrono> #include <bo...
0
repos/fiber/include/boost
repos/fiber/include/boost/fiber/recursive_mutex.hpp
// Copyright Oliver Kowalke 2013. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // // based on boost::interprocess::sync::interprocess_spinlock #ifndef BOOST_FIBERS_RECURSIVE_MUTEX_H #de...
0
repos/fiber/include/boost
repos/fiber/include/boost/fiber/pooled_fixedsize_stack.hpp
// Copyright Oliver Kowalke 2014. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_FIBERS_POOLED_FIXEDSIZE_STACK_H #define BOOST_FIBERS_POOLED_FIXEDSIZE_STACK_H #include <boos...
0
repos/fiber/include/boost
repos/fiber/include/boost/fiber/properties.hpp
// Copyright Nat Goodspeed 2014. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // Define fiber_properties, a base class from which a library consumer can // derive a subclass with specific...
0
repos/fiber/include/boost
repos/fiber/include/boost/fiber/context.hpp
// Copyright Oliver Kowalke 2013. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_FIBERS_CONTEXT_H #define BOOST_FIBERS_CONTEXT_H #include <atomic> #include <chrono> #include...
0
repos/fiber/include/boost
repos/fiber/include/boost/fiber/future.hpp
// Copyright Oliver Kowalke 2013. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #include <boost/fiber/future/async.hpp> #include <boost/fiber/future/future.hpp> #include <boost/fiber/futu...
0
repos/fiber/include/boost
repos/fiber/include/boost/fiber/scheduler.hpp
// Copyright Oliver Kowalke 2013. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_FIBERS_FIBER_MANAGER_H #define BOOST_FIBERS_FIBER_MANAGER_H #include <chrono> #include <funct...
0
repos/fiber/include/boost/fiber
repos/fiber/include/boost/fiber/algo/round_robin.hpp
// Copyright Oliver Kowalke 2013. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_FIBERS_ALGO_ROUND_ROBIN_H #define BOOST_FIBERS_ALGO_ROUND_ROBIN_H #include <condition_variabl...
0
repos/fiber/include/boost/fiber
repos/fiber/include/boost/fiber/algo/work_stealing.hpp
// Copyright Oliver Kowalke 2015. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // #ifndef BOOST_FIBERS_ALGO_WORK_STEALING_H #define BOOST_FIBERS_ALGO_WORK_STEALING_H #include <atomic> #...
0
repos/fiber/include/boost/fiber
repos/fiber/include/boost/fiber/algo/algorithm.hpp
// Copyright Oliver Kowalke 2013. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_FIBERS_ALGO_ALGORITHM_H #define BOOST_FIBERS_ALGO_ALGORITHM_H #include <atomic> #include <chr...
0
repos/fiber/include/boost/fiber
repos/fiber/include/boost/fiber/algo/shared_work.hpp
// Copyright Nat Goodspeed + Oliver Kowalke 2015. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_FIBERS_ALGO_SHARED_WORK_H #define BOOST_FIBERS_ALGO_SHARED_WORK_H #include <...
0
repos/fiber/include/boost/fiber
repos/fiber/include/boost/fiber/cuda/waitfor.hpp
// Copyright Oliver Kowalke 2017. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_FIBERS_CUDA_WAITFOR_H #define BOOST_FIBERS_CUDA_WAITFOR_H #include <initializer_list> #inclu...
0
repos/fiber/include/boost/fiber
repos/fiber/include/boost/fiber/numa/pin_thread.hpp
// Copyright Oliver Kowalke 2017. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_FIBERS_NUMA_PIN_THREAD_H #define BOOST_FIBERS_NUMA_PIN_THREAD_H #include <cstdint> #include ...
0
repos/fiber/include/boost/fiber
repos/fiber/include/boost/fiber/numa/all.hpp
// Copyright Oliver Kowalke 2018. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_FIBERS_NUMA_H #define BOOST_FIBERS_NUMA_H #include <boost/fiber/numa/algo/work_stealing.hpp...
0
repos/fiber/include/boost/fiber
repos/fiber/include/boost/fiber/numa/topology.hpp
// Copyright Oliver Kowalke 2017. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_FIBERS_NUMA_TOPOLOGY_H #define BOOST_FIBERS_NUMA_TOPOLOGY_H #include <cstdint> #include <set...
0
repos/fiber/include/boost/fiber/numa
repos/fiber/include/boost/fiber/numa/algo/work_stealing.hpp
// Copyright Oliver Kowalke 2017. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // #ifndef BOOST_FIBERS_NUMA_ALGO_WORK_STEALING_H #define BOOST_FIBERS_NUMA_ALGO_WORK_STEALING_H #include ...
0
repos/fiber/include/boost/fiber
repos/fiber/include/boost/fiber/detail/decay_copy.hpp
// Copyright Oliver Kowalke 2014. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_FIBER_DETAIL_DECAY_COPY_H #define BOOST_FIBER_DETAIL_DECAY_COPY_H #include <type_traits> #i...
0
repos/fiber/include/boost/fiber
repos/fiber/include/boost/fiber/detail/data.hpp
// Copyright Oliver Kowalke 2013. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_FIBERS_DETAIL_DATA_H #define BOOST_FIBERS_DETAIL_DATA_H #include <boost/config.hpp> #includ...
0
repos/fiber/include/boost/fiber
repos/fiber/include/boost/fiber/detail/config.hpp
// Copyright Oliver Kowalke 2013. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_FIBERS_DETAIL_CONFIG_H #define BOOST_FIBERS_DETAIL_CONFIG_H #include <cstddef> #include <bo...
0
repos/fiber/include/boost/fiber
repos/fiber/include/boost/fiber/detail/spinlock_ttas_adaptive_futex.hpp
// Copyright Oliver Kowalke 2016. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_FIBERS_SPINLOCK_TTAS_ADAPTIVE_FUTEX_H #define BOOST_FIBERS_SPINLOCK_TTAS_ADAPTIVE_FUTEX_H #i...
0
repos/fiber/include/boost/fiber
repos/fiber/include/boost/fiber/detail/disable_overload.hpp
// Copyright Oliver Kowalke 2014. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_FIBER_DETAIL_DISABLE_OVERLOAD_H #define BOOST_FIBER_DETAIL_DISABLE_OVERLOAD_H #include <type...
0
repos/fiber/include/boost/fiber
repos/fiber/include/boost/fiber/detail/spinlock_ttas_futex.hpp
// Copyright Oliver Kowalke 2016. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_FIBERS_spinlock_ttas_futex_FUTEX_H #define BOOST_FIBERS_spinlock_ttas_futex_FUTEX_H #include...
0
repos/fiber/include/boost/fiber
repos/fiber/include/boost/fiber/detail/is_all_same.hpp
// Copyright Oliver Kowalke 2017. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_FIBERS_DETAIL_IS_ALL_SAME_H #define BOOST_FIBERS_DETAIL_IS_ALL_SAME_H #include <type_traits>...
0
repos/fiber/include/boost/fiber
repos/fiber/include/boost/fiber/detail/fss.hpp
// Copyright Oliver Kowalke 2013. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // // based on tss.hpp from boost.thread #ifndef BOOST_FIBERS_DETAIL_FSS_H #define BOOST_FIBERS_DE...
0
repos/fiber/include/boost/fiber
repos/fiber/include/boost/fiber/detail/cpu_relax.hpp
// Copyright Oliver Kowalke 2016. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_FIBERS_DETAIL_CPU_RELAX_H #define BOOST_FIBERS_DETAIL_CPU_RELAX_H #include <chrono> #include...
0
repos/fiber/include/boost/fiber
repos/fiber/include/boost/fiber/detail/context_spinlock_queue.hpp
// Copyright Oliver Kowalke 2015. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // #ifndef BOOST_FIBERS_DETAIL_SPINLOCK_QUEUE_H #define BOOST_FIBERS_DETAIL_SPINLOCK_QUEUE_H #include <cst...
0
repos/fiber/include/boost/fiber
repos/fiber/include/boost/fiber/detail/spinlock_rtm.hpp
// Copyright Oliver Kowalke 2017. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_FIBERS_SPINLOCK_RTM_H #define BOOST_FIBERS_SPINLOCK_RTM_H #include <algorithm> #include <ato...
0
repos/fiber/include/boost/fiber
repos/fiber/include/boost/fiber/detail/thread_barrier.hpp
// Copyright Oliver Kowalke 2013. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_FIBER_DETAIL_THREAD_BARRIER_H #define BOOST_FIBER_DETAIL_THREAD_BARRIER_H #include <cstddef>...
0
repos/fiber/include/boost/fiber
repos/fiber/include/boost/fiber/detail/rtm.hpp
// Copyright Oliver Kowalke 2017. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // #ifndef BOOST_FIBER_DETAIL_RTM_H #define BOOST_FIBER_DETAIL_RTM_H #include <cstdint> #include <boost/a...
0
repos/fiber/include/boost/fiber
repos/fiber/include/boost/fiber/detail/futex.hpp
// Copyright Oliver Kowalke 2016. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_FIBERS_DETAIL_FUTEX_H #define BOOST_FIBERS_DETAIL_FUTEX_H #include <boost/config.hpp> #inclu...
0
repos/fiber/include/boost/fiber
repos/fiber/include/boost/fiber/detail/context_spmc_queue.hpp
// Copyright Oliver Kowalke 2013. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_FIBERS_DETAIL_CONTEXT_SPMC_QUEUE_H #define BOOST_FIBERS_DETAIL_CONTEXT_SPMC_QUEUE_H #include...
0
repos/fiber/include/boost/fiber
repos/fiber/include/boost/fiber/detail/spinlock_ttas_adaptive.hpp
// Copyright Oliver Kowalke 2016. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_FIBERS_SPINLOCK_TTAS_ADAPTIVE_H #define BOOST_FIBERS_SPINLOCK_TTAS_ADAPTIVE_H #include <algo...
0
repos/fiber/include/boost/fiber
repos/fiber/include/boost/fiber/detail/spinlock_status.hpp
// Copyright Oliver Kowalke 2017. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_FIBERS_SPINLOCK_STATUS_H #define BOOST_FIBERS_SPINLOCK_STATUS_H namespace boost { namespace ...
0
repos/fiber/include/boost/fiber
repos/fiber/include/boost/fiber/detail/spinlock.hpp
// Copyright Oliver Kowalke 2013. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_FIBERS_SPINLOCK_H #define BOOST_FIBERS_SPINLOCK_H #include <boost/config.hpp> #include <boo...
0
repos/fiber/include/boost/fiber
repos/fiber/include/boost/fiber/detail/convert.hpp
// Copyright Oliver Kowalke 2013. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_FIBERS_DETAIL_CONVERT_H #define BOOST_FIBERS_DETAIL_CONVERT_H #include <chrono> #include <me...
0
repos/fiber/include/boost/fiber
repos/fiber/include/boost/fiber/detail/exchange.hpp
// Copyright Oliver Kowalke 2018. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_FIBER_DETAIL_EXCHANGE_H #define BOOST_FIBER_DETAIL_EXCHANGE_H #include <algorithm> #include ...
0
repos/fiber/include/boost/fiber
repos/fiber/include/boost/fiber/detail/spinlock_ttas.hpp
// Copyright Oliver Kowalke 2016. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_FIBERS_SPINLOCK_TTAS_H #define BOOST_FIBERS_SPINLOCK_TTAS_H #include <algorithm> #include <a...
0
repos/fiber/include/boost/fiber
repos/fiber/include/boost/fiber/hip/waitfor.hpp
// Copyright Oliver Kowalke 2017. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_FIBERS_CUDA_WAITFOR_H #define BOOST_FIBERS_CUDA_WAITFOR_H #include <initializer_list> #inclu...
0
repos/fiber/include/boost/fiber
repos/fiber/include/boost/fiber/future/promise.hpp
// Copyright Oliver Kowalke 2013. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_FIBERS_PROMISE_HPP #define BOOST_FIBERS_PROMISE_HPP #include <algorithm> #include <memory> #...
0
repos/fiber/include/boost/fiber
repos/fiber/include/boost/fiber/future/packaged_task.hpp
// Copyright Oliver Kowalke 2013. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_FIBERS_PACKAGED_TASK_HPP #define BOOST_FIBERS_PACKAGED_TASK_HPP #include <algorithm> #includ...
0
repos/fiber/include/boost/fiber
repos/fiber/include/boost/fiber/future/async.hpp
// Copyright Oliver Kowalke 2013. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_FIBERS_ASYNC_HPP #define BOOST_FIBERS_ASYNC_HPP #include <algorithm> #include <memory> #incl...
0
repos/fiber/include/boost/fiber
repos/fiber/include/boost/fiber/future/future_status.hpp
// Copyright Oliver Kowalke 2013. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_FIBERS_FUTURE_STATUS_HPP #define BOOST_FIBERS_FUTURE_STATUS_HPP #include <future> #include ...
0
repos/fiber/include/boost/fiber
repos/fiber/include/boost/fiber/future/future.hpp
// Copyright Oliver Kowalke 2013. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_FIBERS_FUTURE_HPP #define BOOST_FIBERS_FUTURE_HPP #include <algorithm> #include <chrono> #in...
0
repos/fiber/include/boost/fiber/future
repos/fiber/include/boost/fiber/future/detail/shared_state.hpp
// Copyright Oliver Kowalke 2013. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_FIBERS_DETAIL_SHARED_STATE_H #define BOOST_FIBERS_DETAIL_SHARED_STATE_H #include <algorithm>...
0
repos/fiber/include/boost/fiber/future
repos/fiber/include/boost/fiber/future/detail/task_object.hpp
// Copyright Oliver Kowalke 2013. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_FIBERS_DETAIL_TASK_OBJECT_H #define BOOST_FIBERS_DETAIL_TASK_OBJECT_H #include <exception> #...