GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - nullpic/ThreadPool: Thread Pool is a thread queue. You could push threads to ThreadPool, and then it will process the thread.

BranchesTags
Open more actions menu

Latest commit

 

History

8 Commits
8 Commits

Folders and files

NameName
Last commit message
Last commit date
ThreadPool.xcodeproj
ThreadPool.xcodeproj
 
 
ThreadPool
ThreadPool
 
 
ThreadPoolTests
ThreadPoolTests
 
 
README.md
README.md
 
 
ThreadPool.h
ThreadPool.h
 
 
ThreadPool.m
ThreadPool.m
 
 

Repository files navigation

#ThreadPool 1.0

Kelp http://kelp.phate.org/
MIT License

Thread Pool is a thread queue.
You could push threads to ThreadPool, and then it will process the thread.

ThreadPool *pool = [ThreadPool new];

NSThread *thread = [[NSThread alloc] initWithTarget:self
                                           selector:@selector(threadExecuteCode)
                                             object:nil];
thread.name = @"Thread A";
[pool pushThread:thread];

thread = [[NSThread alloc] initWithTarget:self
                                 selector:@selector(threadExecuteCode)
                                   object:nil];
thread.name = @"Thread B";
[pool pushThread:thread];
- (void)threadExecuteCode
{
    for (int index = 0; index < 10; index++) {
        NSLog(@"%@: %i", [NSThread currentThread].name, index);
    }
}

About

Thread Pool is a thread queue. You could push threads to ThreadPool, and then it will process the thread.

Resources

Readme
Activity

Stars

1 star

Watchers

0 watching

Forks

2 forks
Report repository

Releases

Packages

Contributors

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.