DragonFly BSD
DragonFly users List (threaded) for 2012-10
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Replacing FBSD mutexes


From: elekktretterr@xxxxxxxxxxxxxx
Date: Tue, 23 Oct 2012 19:47:24 +1100

I'm working on a new port of the nvidia driver to learn more about OS
programming.

What is the proper way to replace FreeBSD mutex locks?

Such as:

mtx_init(&mtx->mutex_mtx, "os.mutex_mtx", NULL, MTX_DEF | MTX_RECURSE);

mtx_lock(&mtx->mutex_mtx);

Petr



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]