File: http_client_mt.ml

package info (click to toggle)
netclient 0.91-10
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,096 kB
  • ctags: 1,539
  • sloc: ml: 8,808; sh: 527; makefile: 203
file content (11 lines) | stat: -rw-r--r-- 275 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
(* $Id: http_client_mt.ml 141 2005-07-26 13:31:31Z gerd $ *)

Http_client.init_mt
  ~create_lock_unlock_pair:
    (fun () ->
       let mutex = Mutex.create() in
       let lock() = Mutex.lock mutex in
       let unlock() = Mutex.unlock mutex in
       lock, unlock
    )
;;