8000 Support Multiple Threads for Linux and Darwin only. · Issue #19 · ossrs/state-threads · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Support Multiple Threads for Linux and Darwin only. #19
Closed
@winlinvip

Description

@winlinvip

For WebRTC or UDP transport system, multiple threads or CPUs is essential important, please read ossrs/srs#2188

The first step, is to simplify the state-threads. We should remove the dead code for UDP server:

  • Remove multiple OS support, only for Linux(CentOS,Ubuntu,etc) and Darwin(macOS).
  • Remove the examples and extensions.
  • Remove the poll support, only Linux epoll and Darwin kqueue.
  • Remove the support for multiple processes, for single process only.
  • Stack always grows from top to down.
  • Remove the deprecated serialize accept.

Then, we should use gcc __thread for multiple threads:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0