Skip to content

Thread Pool Command Observer Pattern with C++/ Cocos2d/gtest

Notifications You must be signed in to change notification settings

youssefmyh/ThreadPoolcommandObserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ThreadPoolCommandObserver

This project implements a Thread Pool combined with the Command and Observer design patterns using C++. It integrates with the Cocos2d-x game development framework and includes unit tests with Google Test (gtest).

Features

  • Thread Pool: Manages a pool of worker threads to execute tasks concurrently.
  • Command Pattern: Encapsulates requests as objects, allowing for parameterization and queuing of requests.
  • Observer Pattern: Defines a subscription mechanism to notify multiple objects about events.
  • Cocos2d-x Integration: Demonstrates usage within the Cocos2d-x game engine environment.
  • Unit Testing: Includes tests using the Google Test framework to ensure code reliability.

Prerequisites

  • C++11 or higher
  • Cocos2d-x
  • Google Test

Getting Started

  1. Clone the Repository:

    git clone https://github.com/youssefmyh/ThreadPoolcommandObserver.git
  2. Navigate to the Project Directory:

    cd ThreadPoolcommandObserver
  3. Build the Project:

    • Ensure Cocos2d-x and Google Test are properly set up in your development environment.
    • Use your preferred build system to compile the project.
  4. Run Unit Tests:

    • Execute the test suite to verify functionality.

Project Structure

  • Classes/: Contains the implementation of the Thread Pool, Command, and Observer patterns.
  • gtest/: Includes unit tests for the implemented patterns.
  • pattern.jpg and pattern.pdf: Visual representations of the design patterns used.

Contributing

Contributions are welcome! Feel free to open issues or submit pull requests to enhance the project.

License

This project is licensed under the MIT License.

Acknowledgments

For more information, visit the GitHub repository.

About

Thread Pool Command Observer Pattern with C++/ Cocos2d/gtest

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published