Latest 0.4.0
Homepage https://github.com/games-neox/GNThreadPool
License MIT
Platforms ios 8.0
Dependencies GNExceptions, GNLog, GNPreconditions
Authors

CI Status
Version
License
Platform

Simple thread pool for Objective-C/Swift.
Basis usage:

#import <GNThreadPool/GNThreadPool.h>

GNThreadPool* threadPool = [[GNThreadPool alloc] initWithThreadsAmount:4 withPriority: GNThreadPriorityHigher];

[threadPool enqueue:^{
    NSLog(@"in a separate thread");
}];

[threadPool clear];
import GNThreadPool

let threadPool = GNThreadPool(threadsAmount: 4,  withPriority: .Higher)

threadPool.enqueue() {
    NSLog("in a separate thread")
}

threadPool.clear()

Inspiried by Jakob Progsch, Václav Zeman, 2012

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Minimum supported iOS version: 8.x
Dependencies: GNExceptions, GNLog & GNPreconditions

Installation

GNThreadPool is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "GNThreadPool"

Author

Games Neox, [email protected]

License

GNThreadPool is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "GNThreadPool",
    "version": "0.4.0",
    "summary": "thread pool for Objective-C",
    "homepage": "https://github.com/games-neox/GNThreadPool",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Games Neox": "[email protected]"
    },
    "source": {
        "git": "https://github.com/games-neox/GNThreadPool.git",
        "tag": "0.4.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "dependencies": {
        "GNExceptions": [],
        "GNLog": [],
        "GNPreconditions": []
    },
    "source_files": "GNThreadPool/Classes/*",
    "public_header_files": "GNThreadPool/Classes/*.h"
}

Pin It on Pinterest

Share This