view subtly/gthread.rb @ 6:c86846c6b2da

Moved lib magic into separated files
author unexist
date Mon, 14 Dec 2009 00:33:30 +0100
parents
children 6838c7123945
line wrap: on
line source
##
# @package subtly
#
# @file GThread bindings
# @author Christoph Kappel <unexist@dorfelite.net>
# @version $Id: subtly/gthread.rb,v 6 1260747210.0-3600 unexist $
#
# This program can be distributed under the terms of the GNU GPL.
##

require "ffi"

module Subtly
  module GThread
    extend FFI::Library

    ffi_lib("libgthread-2.0")

    ## ffi_init
    # Init thread system
    #
    # @param  [Pointer, #read]  Just don't use, #GThreadFunctions
    ##

    attach_function(:ffi_init,
      :g_thread_init, [ :pointer ], :void
    )
  end
end