On 03/09/2011 02:02 PM, Mathieu Desnoyers wrote:
void call_rcu_before_fork_parent(void) pthread_mutex_lock(&call_rcu_mutex);void call_rcu_after_fork_parent(void) pthread_mutex_unlock(&call_rcu_mutex); void call_rcu_after_fork_child(void) allocate new default call_rcu_data dispose of old structures pthread_mutex_unlock(&call_rcu_mutex);
These are just the three arguments to pthread_atfork, so they could be replaced by a single call_rcu_init_atfork that calls pthread_atfork.
Paolo _______________________________________________ ltt-dev mailing list [email protected] http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
