/**
* Creates a new user event.
*/
public static CLUserEvent create(CLContext context) {
CLEventBinding binding = context.getPlatform().getEventBinding();
int[] error = new int[1];
long ID = binding.clCreateUserEvent(context.ID, error, 0);
checkForError(error[0], "can not create user event.");
return new CLUserEvent(context, ID);
}