algernon: github.com/xyproto/algernon/lua/pool Index | Files

package pool

import "github.com/xyproto/algernon/lua/pool"

Package pool provides functions for managing a pool of Lua state structs

Index

Package Files

pool.go

type LStatePool Uses

type LStatePool struct {
    // contains filtered or unexported fields
}

LStatePool is a pool of Lua states, with a mutex

func New Uses

func New() *LStatePool

New returns a new Lua pool structure

func (*LStatePool) Get Uses

func (pl *LStatePool) Get() *lua.LState

Get borrows an existing Lua state

func (*LStatePool) New Uses

func (pl *LStatePool) New() *lua.LState

New returns a new Lua state

func (*LStatePool) Put Uses

func (pl *LStatePool) Put(L *lua.LState)

Put delivers back a borrowed Lua state

func (*LStatePool) Shutdown Uses

func (pl *LStatePool) Shutdown()

Shutdown can be used then the Lua pool is being shut down

Package pool imports 2 packages (graph) and is imported by 1 packages. Updated 2017-10-12. Refresh now. Tools for package owners.