Skip to content

benglard/pthreads-ffi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pthreads-ffi

A LuaJIT threading system based on C pthreads.

Note: after writing this, I discovered that threads-ffi also exists.

Example Usage:

require '../pthreads'

print(
  multithread{
    print=true,
    time=true,
    nthreads=10,
    globals={
      sum = 0,
    },
    fname='hello',
    f=[[function(id) sum = sum + id end]],
  }.sum
)

About

LuaJIT threading system based on C pthreads

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages